/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/fs/simple-screens/loading.tsx
29 строк
658 B
chrisnojima
refactor(styles): theme via hooks, no android remount (#29515)
08 авг 2026, 02:24
Не верифицирован
08 авг 2026, 02:24
a41d38e
Код
Авторство
О чём код?
import * as Kb from '@/common-adapters' const LoadingScreen = (p: {why?: string}) => { const styles = useStyles() return ( <Kb.Box2 direction="vertical" centerChildren={true} style={styles.container} fullHeight={true} fullWidth={true} gap="small" > <Kb.ProgressIndicator type="Large" /> <Kb.Text type="BodySmall">Loading ...{p.why ?? ''}</Kb.Text> </Kb.Box2> ) } export default LoadingScreen const useStyles = Kb.Styles.createStyleHook( theme => ({ container: { backgroundColor: theme.blueLighter3, ...Kb.Styles.globalStyles.flexGrow, }, }) as const )