diff options
author | Ansh <anshnanda10@gmail.com> | 2023-04-09 18:02:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 18:02:44 -0700 |
commit | 14c84732106e1db52e6818ac3814c54845ec1226 (patch) | |
tree | c55e07e0e569a2c41ca73fb3420a2c6b08621c4d /src/view/com/lightbox/ImageViewing/index.tsx | |
parent | 362ea7240d44f130419191e7f726535a77763238 (diff) | |
download | voidsky-14c84732106e1db52e6818ac3814c54845ec1226.tar.zst |
[DRAFT] Android (#424)
* add android & ios folders to .gitignore * delete android and ios dirs * fix android build errors * fix status bar color * fix top cutoff on composer in android * fix weird whitespace issue in post * fix greyed out header android * fix main feed getting cut off android * fix swiping on main feed * fix profile tabs switching on android * A few app.json config items for iOS * Update app.json for bgfetch * make swiping work on android * make splash screen cover * add eas.json * fix image container on android * fix android status bar color * use expo-splash-screen instead of react-native-splash-screen --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/com/lightbox/ImageViewing/index.tsx')
-rw-r--r-- | src/view/com/lightbox/ImageViewing/index.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/com/lightbox/ImageViewing/index.tsx b/src/view/com/lightbox/ImageViewing/index.tsx index 722540a58..8aee9ebbd 100644 --- a/src/view/com/lightbox/ImageViewing/index.tsx +++ b/src/view/com/lightbox/ImageViewing/index.tsx @@ -26,6 +26,7 @@ import useAnimatedComponents from './hooks/useAnimatedComponents' import useImageIndexChange from './hooks/useImageIndexChange' import useRequestClose from './hooks/useRequestClose' import {ImageSource} from './@types' +import {SafeAreaView} from 'react-native-safe-area-context' type Props = { images: ImageSource[] @@ -97,7 +98,7 @@ function ImageViewing({ } return ( - <View style={styles.screen} onLayout={onLayout}> + <SafeAreaView style={styles.screen} onLayout={onLayout}> <ModalsContainer /> <View style={[styles.container, {opacity, backgroundColor}]}> <Animated.View style={[styles.header, {transform: headerTransform}]}> @@ -152,7 +153,7 @@ function ImageViewing({ </Animated.View> )} </View> - </View> + </SafeAreaView> ) } |