diff --git a/src/createNavigationContainer.js b/src/createNavigationContainer.js index 3cfc5e38..20232281 100644 --- a/src/createNavigationContainer.js +++ b/src/createNavigationContainer.js @@ -6,7 +6,7 @@ import NavigationActions from './NavigationActions'; import getNavigation from './getNavigation'; import invariant from './utils/invariant'; import docsUrl from './utils/docsUrl'; -import { urlToPathAndParams } from './routers/pathUtils'; +import { urlToPathAndParams } from './routers/PathUtils'; function isStateful(props) { return !props.navigation; diff --git a/src/react-navigation.js b/src/react-navigation.js index 3f004ff3..bd009189 100644 --- a/src/react-navigation.js +++ b/src/react-navigation.js @@ -88,6 +88,18 @@ module.exports = { get SwitchRouter() { return require('./routers/SwitchRouter').default; }, + get createConfigGetter() { + return require('./routers/createConfigGetter').default; + }, + get getScreenForRouteName() { + return require('./routers/getScreenForRouteName').default; + }, + get validateRouteConfigMap() { + return require('./routers/validateRouteConfigMap').default; + }, + get PathUtils() { + return require('./routers/PathUtils').default; + }, // Views get Transitioner() { diff --git a/src/routers/StackRouter.js b/src/routers/StackRouter.js index d26c6d60..e07b5584 100644 --- a/src/routers/StackRouter.js +++ b/src/routers/StackRouter.js @@ -6,7 +6,7 @@ import StateUtils from '../StateUtils'; import validateRouteConfigMap from './validateRouteConfigMap'; import invariant from '../utils/invariant'; import { generateKey } from './KeyGenerator'; -import { createPathParser } from './pathUtils'; +import { createPathParser } from './PathUtils'; function behavesLikePushAction(action) { return ( diff --git a/src/routers/SwitchRouter.js b/src/routers/SwitchRouter.js index e5b76dfd..58317a69 100644 --- a/src/routers/SwitchRouter.js +++ b/src/routers/SwitchRouter.js @@ -5,7 +5,7 @@ import createConfigGetter from './createConfigGetter'; import NavigationActions from '../NavigationActions'; import StackActions from './StackActions'; import validateRouteConfigMap from './validateRouteConfigMap'; -import { createPathParser } from './pathUtils'; +import { createPathParser } from './PathUtils'; const defaultActionCreators = (route, navStateKey) => ({}); diff --git a/src/routers/__tests__/PathHandling-test.js b/src/routers/__tests__/PathHandling-test.js index a5070039..8b2fa896 100644 --- a/src/routers/__tests__/PathHandling-test.js +++ b/src/routers/__tests__/PathHandling-test.js @@ -6,7 +6,7 @@ import SwitchRouter from '../SwitchRouter'; import StackRouter from '../StackRouter'; import StackActions from '../StackActions'; import NavigationActions from '../../NavigationActions'; -import { urlToPathAndParams } from '../pathUtils'; +import { urlToPathAndParams } from '../PathUtils'; import { _TESTING_ONLY_normalize_keys } from '../KeyGenerator'; beforeEach(() => { diff --git a/src/routers/__tests__/pathUtils-test.js b/src/routers/__tests__/pathUtils-test.js index 588a44ef..d8093d6c 100644 --- a/src/routers/__tests__/pathUtils-test.js +++ b/src/routers/__tests__/pathUtils-test.js @@ -1,4 +1,4 @@ -import { urlToPathAndParams } from '../pathUtils'; +import { urlToPathAndParams } from '../PathUtils'; test('urlToPathAndParams empty', () => { const { path, params } = urlToPathAndParams('foo://');