change status bar appearence at top snappoint
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
|||||||
} from 'react-native-gesture-handler'
|
} from 'react-native-gesture-handler'
|
||||||
import {KeyboardAwareScrollView} from 'react-native-keyboard-controller'
|
import {KeyboardAwareScrollView} from 'react-native-keyboard-controller'
|
||||||
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
||||||
|
import {StatusBar} from 'expo-status-bar'
|
||||||
|
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {isIOS} from '#/platform/detection'
|
import {isIOS} from '#/platform/detection'
|
||||||
@@ -98,9 +99,12 @@ export function Outer({
|
|||||||
[close, snapPoint],
|
[close, snapPoint],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const isFullHeightIOS = isIOS && snapPoint === BottomSheetSnapPoint.Full
|
||||||
|
|
||||||
const Wrapper = isIOS ? View : GestureHandlerRootView
|
const Wrapper = isIOS ? View : GestureHandlerRootView
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<Portal>
|
<Portal>
|
||||||
<Context.Provider value={context}>
|
<Context.Provider value={context}>
|
||||||
<BottomSheet
|
<BottomSheet
|
||||||
@@ -123,6 +127,8 @@ export function Outer({
|
|||||||
</BottomSheet>
|
</BottomSheet>
|
||||||
</Context.Provider>
|
</Context.Provider>
|
||||||
</Portal>
|
</Portal>
|
||||||
|
{isFullHeightIOS && <StatusBar style="light" />}
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user