aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-29 17:57:54 -0400
committerIvan Chen <ivan@tagg.id>2021-03-29 17:57:54 -0400
commitd1e5d18c36af46b450ec7d019550c05b1a78f2db (patch)
tree242548c0df3afa3d1e38aff0a9b7a43b8b933941
parent2b341648ea27823912d80bc73cc7954556b63b9d (diff)
fixed issue
-rw-r--r--src/screens/profile/MomentUploadPromptScreen.tsx11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/screens/profile/MomentUploadPromptScreen.tsx b/src/screens/profile/MomentUploadPromptScreen.tsx
index 24715f60..f79c81b4 100644
--- a/src/screens/profile/MomentUploadPromptScreen.tsx
+++ b/src/screens/profile/MomentUploadPromptScreen.tsx
@@ -8,7 +8,7 @@ import {Moment} from '../../components';
import {Image} from 'react-native-animatable';
import {UPLOAD_MOMENT_PROMPT_ONE_MESSAGE} from '../../constants/strings';
import {PROFILE_CUTOUT_BOTTOM_Y} from '../../constants';
-import {SCREEN_HEIGHT} from '../../utils';
+import {isIPhoneX, normalize} from '../../utils';
type MomentUploadPromptScreenRouteProp = RouteProp<
MainStackParams,
@@ -59,7 +59,12 @@ const MomentUploadPromptScreen: React.FC<MomentUploadPromptScreenProps> = ({
showDownButton={false}
showUpButton={false}
externalStyles={{
- container: {...styles.momentContainer, top: profileBodyHeight + 615},
+ container: {
+ ...styles.momentContainer,
+ top: isIPhoneX()
+ ? profileBodyHeight + 615
+ : profileBodyHeight + 500,
+ },
titleText: styles.momentHeaderText,
header: styles.momentHeader,
scrollContainer: styles.momentScrollContainer,
@@ -85,7 +90,7 @@ const styles = StyleSheet.create({
marginTop: 250,
color: '#fff',
fontWeight: 'bold',
- fontSize: 20,
+ fontSize: normalize(20),
textAlign: 'center',
},
arrowGif: {