Bluesky app fork with some witchin' additions 馃挮 witchsky.app
bluesky fork client
119
fork

Configure Feed

Select the types of activity you want to include in your feed.

at a876aae44ea07494ebea9727350aa060b81f317b 25 lines 697 B view raw
1import {useCallback} from 'react' 2import {SystemBars} from 'react-native-edge-to-edge' 3 4import {IS_IOS, IS_LIQUID_GLASS} from '#/env' 5 6/** 7 * If we're calling a system API like the image picker that opens a sheet 8 * wrap it in this function to make sure the status bar is the correct color. 9 */ 10export function useSheetWrapper() { 11 return useCallback(async <T>(promise: Promise<T>): Promise<T> => { 12 if (IS_IOS && !IS_LIQUID_GLASS) { 13 const entry = SystemBars.pushStackEntry({ 14 style: { 15 statusBar: 'light', 16 }, 17 }) 18 const res = await promise 19 SystemBars.popStackEntry(entry) 20 return res 21 } else { 22 return await promise 23 } 24 }, []) 25}