Fix root sibling context issue (#1902)
parent
0a26e78dcb
commit
00f8c8b06d
|
@ -74,18 +74,19 @@ const InnerApp = observer(function AppImpl() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider theme={colorMode}>
|
<ThemeProvider theme={colorMode}>
|
||||||
<RootSiblingParent>
|
<analytics.Provider>
|
||||||
<analytics.Provider>
|
<RootStoreProvider value={rootStore}>
|
||||||
<RootStoreProvider value={rootStore}>
|
<I18nProvider i18n={i18n}>
|
||||||
<I18nProvider i18n={i18n}>
|
{/* All components should be within this provider */}
|
||||||
|
<RootSiblingParent>
|
||||||
<GestureHandlerRootView style={s.h100pct}>
|
<GestureHandlerRootView style={s.h100pct}>
|
||||||
<TestCtrls />
|
<TestCtrls />
|
||||||
<Shell />
|
<Shell />
|
||||||
</GestureHandlerRootView>
|
</GestureHandlerRootView>
|
||||||
</I18nProvider>
|
</RootSiblingParent>
|
||||||
</RootStoreProvider>
|
</I18nProvider>
|
||||||
</analytics.Provider>
|
</RootStoreProvider>
|
||||||
</RootSiblingParent>
|
</analytics.Provider>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
|
@ -62,18 +62,19 @@ const InnerApp = observer(function AppImpl() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider theme={colorMode}>
|
<ThemeProvider theme={colorMode}>
|
||||||
<RootSiblingParent>
|
<analytics.Provider>
|
||||||
<analytics.Provider>
|
<RootStoreProvider value={rootStore}>
|
||||||
<RootStoreProvider value={rootStore}>
|
<I18nProvider i18n={i18n}>
|
||||||
<I18nProvider i18n={i18n}>
|
{/* All components should be within this provider */}
|
||||||
|
<RootSiblingParent>
|
||||||
<SafeAreaProvider>
|
<SafeAreaProvider>
|
||||||
<Shell />
|
<Shell />
|
||||||
</SafeAreaProvider>
|
</SafeAreaProvider>
|
||||||
</I18nProvider>
|
</RootSiblingParent>
|
||||||
<ToastContainer />
|
</I18nProvider>
|
||||||
</RootStoreProvider>
|
<ToastContainer />
|
||||||
</analytics.Provider>
|
</RootStoreProvider>
|
||||||
</RootSiblingParent>
|
</analytics.Provider>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue