Skip to content

Commit 6177a83

Browse files
committed
优化分类详情页面
1 parent 47654f3 commit 6177a83

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ts/components/common/animate/Header.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ import {
77
TouchableOpacity,
88
} from 'react-native';
99

10-
import {isIphoneX} from 'react-native-iphone-x-helper';
10+
import {STATUSBAR_HEIGHT} from '@/utils/Utils';
1111

1212
const ios = Platform.OS === 'ios';
13-
const isIphoneX_ = isIphoneX();
14-
const iphoneXTopInset = 24;
1513
const initToolbarHeight = ios ? 46 : 56;
1614

1715
const paddingTop = ios ? 18 : 0;
18-
const topInset = isIphoneX_ ? iphoneXTopInset : 0;
16+
const topInset = STATUSBAR_HEIGHT;
1917

2018
const toolbarHeight = initToolbarHeight + topInset + paddingTop;
2119

ts/page/discover/CategoryDetailPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function CategoryDetailPage(props: IProps) {
9292
title={props.route.params.item.name}
9393
renderLeft={backIcon}
9494
headerMaxHeight={200}
95+
noBorder={true}
9596
imageSource={{
9697
uri: props.route.params.item.headerImage,
9798
}}

0 commit comments

Comments
 (0)