@mpxjs/core 2.10.6-beta.8 → 2.10.6-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ import * as ReactNative from 'react-native'
|
|
|
11
11
|
import { initAppProvides } from './export/inject'
|
|
12
12
|
import { NavigationContainer, createNativeStackNavigator, SafeAreaProvider, GestureHandlerRootView } from './env/navigationHelper'
|
|
13
13
|
import createMpxNav from '@mpxjs/webpack-plugin/lib/runtime/components/react/dist/nav'
|
|
14
|
+
import { NavSharedProvider } from '@mpxjs/webpack-plugin/lib/runtime/components/react/dist/mpx-nav-container'
|
|
14
15
|
|
|
15
16
|
const appHooksMap = makeMap(mergeLifecycle(LIFECYCLE).app)
|
|
16
17
|
|
|
@@ -257,13 +258,13 @@ export default function createApp (options) {
|
|
|
257
258
|
onStateChange,
|
|
258
259
|
onUnhandledAction
|
|
259
260
|
},
|
|
260
|
-
createElement(Stack.Navigator,
|
|
261
|
+
createElement(NavSharedProvider, null, createElement(Stack.Navigator,
|
|
261
262
|
{
|
|
262
263
|
initialRouteName,
|
|
263
264
|
screenOptions: navScreenOpts
|
|
264
265
|
},
|
|
265
266
|
...getPageScreens(initialRouteName, initialParams)
|
|
266
|
-
)
|
|
267
|
+
))
|
|
267
268
|
)
|
|
268
269
|
)
|
|
269
270
|
})
|