Fix root sibling context issue (#1902)
This commit is contained in:
+3
-2
@@ -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>
|
||||||
|
</RootSiblingParent>
|
||||||
</I18nProvider>
|
</I18nProvider>
|
||||||
</RootStoreProvider>
|
</RootStoreProvider>
|
||||||
</analytics.Provider>
|
</analytics.Provider>
|
||||||
</RootSiblingParent>
|
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
+3
-2
@@ -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>
|
||||||
|
</RootSiblingParent>
|
||||||
</I18nProvider>
|
</I18nProvider>
|
||||||
<ToastContainer />
|
<ToastContainer />
|
||||||
</RootStoreProvider>
|
</RootStoreProvider>
|
||||||
</analytics.Provider>
|
</analytics.Provider>
|
||||||
</RootSiblingParent>
|
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user