Fix a couple of exports and export a few more modules

This commit is contained in:
Brent Vatne
2018-08-03 14:47:43 -07:00
parent 51bfe8dd19
commit 4e2a409dca
3 changed files with 19 additions and 0 deletions

View File

@@ -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;
},

View File

@@ -216,3 +216,8 @@ export const createPathParser = (
};
return { getActionForPathAndParams, getPathAndParamsForRoute };
};
export default {
getParamsFromPath,
createPathParser,
};

View File

@@ -5,3 +5,8 @@ const NavigationContext = createReactContext();
export const NavigationProvider = NavigationContext.Provider;
export const NavigationConsumer = NavigationContext.Consumer;
export default {
NavigationProvider,
NavigationConsumer,
};