From 6177a8389b0d9db9ee23939da61dc4edba5f0ef2 Mon Sep 17 00:00:00 2001 From: taofang <2694746499@qq.com> Date: Sat, 4 Sep 2021 17:50:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=86=E7=B1=BB=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ts/components/common/animate/Header.js | 6 ++---- ts/page/discover/CategoryDetailPage.tsx | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ts/components/common/animate/Header.js b/ts/components/common/animate/Header.js index ab278dd..d2023ff 100644 --- a/ts/components/common/animate/Header.js +++ b/ts/components/common/animate/Header.js @@ -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; diff --git a/ts/page/discover/CategoryDetailPage.tsx b/ts/page/discover/CategoryDetailPage.tsx index 4497c72..b69660d 100644 --- a/ts/page/discover/CategoryDetailPage.tsx +++ b/ts/page/discover/CategoryDetailPage.tsx @@ -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, }}