mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 09:13:32 +08:00
Fix a couple of exports and export a few more modules
This commit is contained in:
9
src/react-navigation.js
vendored
9
src/react-navigation.js
vendored
@@ -16,6 +16,15 @@ module.exports = {
|
||||
get createNavigator() {
|
||||
return require('./navigators/createNavigator').default;
|
||||
},
|
||||
get createKeyboardAwareNavigator() {
|
||||
return require('./navigators/createKeyboardAwareNavigator').default;
|
||||
},
|
||||
get NavigationProvider() {
|
||||
return require('./views/NavigationContext').default.NavigationProvider;
|
||||
},
|
||||
get NavigationConsumer() {
|
||||
return require('./views/NavigationContext').default.NavigationConsumer;
|
||||
},
|
||||
get createStackNavigator() {
|
||||
return require('./navigators/createContainedStackNavigator').default;
|
||||
},
|
||||
|
||||
@@ -216,3 +216,8 @@ export const createPathParser = (
|
||||
};
|
||||
return { getActionForPathAndParams, getPathAndParamsForRoute };
|
||||
};
|
||||
|
||||
export default {
|
||||
getParamsFromPath,
|
||||
createPathParser,
|
||||
};
|
||||
|
||||
@@ -5,3 +5,8 @@ const NavigationContext = createReactContext();
|
||||
|
||||
export const NavigationProvider = NavigationContext.Provider;
|
||||
export const NavigationConsumer = NavigationContext.Consumer;
|
||||
|
||||
export default {
|
||||
NavigationProvider,
|
||||
NavigationConsumer,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user