Skip to content

Commit

Permalink
优化分类详情页面
Browse files Browse the repository at this point in the history
  • Loading branch information
fmtjava committed Sep 4, 2021
1 parent 47654f3 commit 6177a83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ts/components/common/animate/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ import {
TouchableOpacity,
} from 'react-native';

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

const ios = Platform.OS === 'ios';
const isIphoneX_ = isIphoneX();
const iphoneXTopInset = 24;
const initToolbarHeight = ios ? 46 : 56;

const paddingTop = ios ? 18 : 0;
const topInset = isIphoneX_ ? iphoneXTopInset : 0;
const topInset = STATUSBAR_HEIGHT;

const toolbarHeight = initToolbarHeight + topInset + paddingTop;

Expand Down
1 change: 1 addition & 0 deletions ts/page/discover/CategoryDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function CategoryDetailPage(props: IProps) {
title={props.route.params.item.name}
renderLeft={backIcon}
headerMaxHeight={200}
noBorder={true}
imageSource={{
uri: props.route.params.item.headerImage,
}}
Expand Down

0 comments on commit 6177a83

Please sign in to comment.