094a877403
* origin/main: (241 commits) Nightly source-language update Update react-navigation (#5967) Update SetNewPasswordForm.tsx (#8349) Nightly source-language update bskyweb: bump indigo (several codegen updates) (#8442) Replace "Note about sharing" prompt with an inline hint (#8452) Bump version to v1.104 (#8447) show misclass button by the same logic as feedContext (#8445) change fontSize: 15 to a.text_sm (#7896) Nightly source-language update use method that's actually available on android (#8448) Release 1.103.0 prep (#8434) Add language: European Portuguese (`pt-PT`) (#8375) Small test fix tweak ordering of explore components (#8432) add metrics (#8426) invert flag for sending to statsig (#8431) Fix link to like-via-repost (#8428) Nightly source-language update Make via-repost notifs groupable (#8429) ...
15 lines
398 B
TypeScript
15 lines
398 B
TypeScript
import * as SystemUI from 'expo-system-ui'
|
|
|
|
import {isAndroid} from '#/platform/detection'
|
|
import {type Theme} from '../types'
|
|
|
|
export function setSystemUITheme(themeType: 'theme' | 'lightbox', t: Theme) {
|
|
if (isAndroid) {
|
|
if (themeType === 'theme') {
|
|
SystemUI.setBackgroundColorAsync(t.atoms.bg.backgroundColor)
|
|
} else {
|
|
SystemUI.setBackgroundColorAsync('black')
|
|
}
|
|
}
|
|
}
|