Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
123456789101112131415161718192021import * as SystemUI from 'expo-system-ui'import {type Theme} from '@bsky.app/alf'
import {logger} from '#/logger'import {IS_ANDROID} from '#/env'
export function setSystemUITheme(themeType: 'theme' | 'lightbox', t: Theme) { if (IS_ANDROID) { try { if (themeType === 'theme') { SystemUI.setBackgroundColorAsync(t.atoms.bg.backgroundColor) } else { SystemUI.setBackgroundColorAsync('black') } } catch (error) { // Can reject with 'The current activity is no longer available' - no big deal logger.debug('Could not set system UI theme', {safeMessage: error}) } }}