Compare commits

..

4 Commits

Author SHA1 Message Date
Brent Vatne
2104bf1a04 Release 2.11.1 2018-08-03 14:48:49 -07:00
Brent Vatne
4e2a409dca Fix a couple of exports and export a few more modules 2018-08-03 14:47:43 -07:00
Brent Vatne
51bfe8dd19 Release 2.11.0 2018-08-03 14:17:24 -07:00
Brent Vatne
04a4512c1b Export modules useful for moving stack navigator outside of core 2018-08-03 14:16:57 -07:00
10 changed files with 48 additions and 7 deletions

View File

@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
## [2.11.1] - [2018-08-02](https://github.com/react-navigation/react-navigation/releases/tag/2.11.1)
### Changed
- Fix some exports related to the 2.11.0 changes to move stack navigator out of core
## [2.11.0] - [2018-08-02](https://github.com/react-navigation/react-navigation/releases/tag/2.11.0)
### Added
- Export some modules that are useful for moving stack navigator outside of core
## [2.10.0] - [2018-08-02](https://github.com/react-navigation/react-navigation/releases/tag/2.10.0)
### Added
- `lazy` and `optimizationsEnabled` options to `createMaterialTopTabNavigator` (react-navigation-tabs@0.6.0)
@@ -127,7 +135,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- Improved examples
[Unreleased]: https://github.com/react-navigation/react-navigation/compare/2.10.0...HEAD
[Unreleased]: https://github.com/react-navigation/react-navigation/compare/2.11.1...HEAD
[2.11.1]: https://github.com/react-navigation/react-navigation/compare/2.11.0...2.11.1
[2.11.0]: https://github.com/react-navigation/react-navigation/compare/2.10.0...2.11.0
[2.10.0]: https://github.com/react-navigation/react-navigation/compare/2.9.3...2.10.0
[2.9.3]: https://github.com/react-navigation/react-navigation/compare/2.9.2...2.9.3
[2.9.2]: https://github.com/react-navigation/react-navigation/compare/2.9.1...2.9.2

View File

@@ -1,6 +1,6 @@
{
"name": "react-navigation",
"version": "2.10.0",
"version": "2.11.1",
"description": "Routing and navigation for your React Native apps",
"main": "src/react-navigation.js",
"repository": {

View File

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

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;
},
@@ -88,6 +97,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() {

View File

@@ -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 (

View File

@@ -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) => ({});

View File

@@ -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(() => {

View File

@@ -1,4 +1,4 @@
import { urlToPathAndParams } from '../pathUtils';
import { urlToPathAndParams } from '../PathUtils';
test('urlToPathAndParams empty', () => {
const { path, params } = urlToPathAndParams('foo://');

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