Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
123456789101112131415161718import {useEffect} from 'react'import {SystemBars} from 'react-native-edge-to-edge'
export function useSetLightStatusBar(enabled: boolean) { useEffect(() => { if (enabled) { const entry = SystemBars.pushStackEntry({ style: { statusBar: 'light', }, }) return () => { SystemBars.popStackEntry(entry) } } }, [enabled])}