diff options
author | Mathieu Acthernoene <zoontek@gmail.com> | 2025-04-22 18:16:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-22 19:16:50 +0300 |
commit | a770f5635b549f2a87ffeaedd031dfe8e37b58c8 (patch) | |
tree | 2e935d294227e57b2e81ba79ba96a6a85f268971 /src/screens/VideoFeed/index.tsx | |
parent | 6e80b340c825900524bfe981ba29cfd0c6cf5934 (diff) | |
download | voidsky-a770f5635b549f2a87ffeaedd031dfe8e37b58c8.tar.zst |
Edge to edge support (#7497)
Diffstat (limited to 'src/screens/VideoFeed/index.tsx')
-rw-r--r-- | src/screens/VideoFeed/index.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/screens/VideoFeed/index.tsx b/src/screens/VideoFeed/index.tsx index 04c2d7792..344b93429 100644 --- a/src/screens/VideoFeed/index.tsx +++ b/src/screens/VideoFeed/index.tsx @@ -8,6 +8,7 @@ import { ViewabilityConfig, ViewToken, } from 'react-native' +import {SystemBars} from 'react-native-edge-to-edge' import { Gesture, GestureDetector, @@ -77,7 +78,7 @@ import {PostCtrls} from '#/view/com/util/post-ctrls/PostCtrls' import {UserAvatar} from '#/view/com/util/UserAvatar' import {Header} from '#/screens/VideoFeed/components/Header' import {atoms as a, ios, platform, ThemeProvider, useTheme} from '#/alf' -import {setNavigationBar} from '#/alf/util/navigationBar' +import {setSystemUITheme} from '#/alf/util/systemUI' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {Divider} from '#/components/Divider' import {ArrowLeft_Stroke2_Corner0_Rounded as ArrowLeftIcon} from '#/components/icons/Arrow' @@ -126,10 +127,10 @@ export function VideoFeed({}: NativeStackScreenProps< useFocusEffect( useCallback(() => { setMinShellMode(true) - setNavigationBar('lightbox', t) + setSystemUITheme('lightbox', t) return () => { setMinShellMode(false) - setNavigationBar('theme', t) + setSystemUITheme('theme', t) } }, [setMinShellMode, t]), ) @@ -140,6 +141,7 @@ export function VideoFeed({}: NativeStackScreenProps< return ( <ThemeProvider theme="dark"> <Layout.Screen noInsetTop style={{backgroundColor: 'black'}}> + <SystemBars style={{statusBar: 'light', navigationBar: 'light'}} /> <View style={[ a.absolute, |