mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at thread-bug 398 B view raw
1import * as SystemUI from 'expo-system-ui' 2 3import {isAndroid} from '#/platform/detection' 4import {type Theme} from '../types' 5 6export function setSystemUITheme(themeType: 'theme' | 'lightbox', t: Theme) { 7 if (isAndroid) { 8 if (themeType === 'theme') { 9 SystemUI.setBackgroundColorAsync(t.atoms.bg.backgroundColor) 10 } else { 11 SystemUI.setBackgroundColorAsync('black') 12 } 13 } 14}