Bluesky app fork with some witchin' additions 馃挮
at main 17 lines 390 B view raw
1import {useEffect} from 'react' 2import {SystemBars} from 'react-native-edge-to-edge' 3 4export function useSetLightStatusBar(enabled: boolean) { 5 useEffect(() => { 6 if (enabled) { 7 const entry = SystemBars.pushStackEntry({ 8 style: { 9 statusBar: 'light', 10 }, 11 }) 12 return () => { 13 SystemBars.popStackEntry(entry) 14 } 15 } 16 }, [enabled]) 17}