diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-03-06 19:38:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 19:38:48 +0900 |
commit | f3db23a3b14e9444cb499c727b9d62c414e5a840 (patch) | |
tree | 4b9f39447c7c53d2baf3dd4029b2f8ea30e3c9b1 /src/App.native.tsx | |
parent | 0c6a82062f9c9c47338fe50f0ef37a1c068939c2 (diff) | |
parent | eb298d2e60a0ddf26ebaf8f27373418bbf7769e3 (diff) | |
download | voidsky-f3db23a3b14e9444cb499c727b9d62c414e5a840.tar.zst |
Merge branch 'bluesky-social:main' into patch-3
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index f08a6235b..eff8ab099 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -43,9 +43,12 @@ import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unre import * as persisted from '#/state/persisted' import {Splash} from '#/Splash' import {Provider as PortalProvider} from '#/components/Portal' +import {Provider as StatsigProvider} from '#/lib/statsig/statsig' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useIntentHandler} from 'lib/hooks/useIntentHandler' +import {StatusBar} from 'expo-status-bar' +import {isAndroid} from 'platform/detection' SplashScreen.preventAutoHideAsync() @@ -69,26 +72,29 @@ function InnerApp() { return ( <SafeAreaProvider initialMetrics={initialWindowMetrics}> + {isAndroid && <StatusBar />} <Alf theme={theme}> <Splash isReady={!isInitialLoad}> <React.Fragment // Resets the entire tree below when it changes: key={currentAccount?.did}> - <LoggedOutViewProvider> - <SelectedFeedProvider> - <UnreadNotifsProvider> - <ThemeProvider theme={theme}> - {/* All components should be within this provider */} - <RootSiblingParent> - <GestureHandlerRootView style={s.h100pct}> - <TestCtrls /> - <Shell /> - </GestureHandlerRootView> - </RootSiblingParent> - </ThemeProvider> - </UnreadNotifsProvider> - </SelectedFeedProvider> - </LoggedOutViewProvider> + <StatsigProvider> + <LoggedOutViewProvider> + <SelectedFeedProvider> + <UnreadNotifsProvider> + <ThemeProvider theme={theme}> + {/* All components should be within this provider */} + <RootSiblingParent> + <GestureHandlerRootView style={s.h100pct}> + <TestCtrls /> + <Shell /> + </GestureHandlerRootView> + </RootSiblingParent> + </ThemeProvider> + </UnreadNotifsProvider> + </SelectedFeedProvider> + </LoggedOutViewProvider> + </StatsigProvider> </React.Fragment> </Splash> </Alf> |