Add NavigationTestUtils and release 2.9.3

This commit is contained in:
Brent Vatne
2018-07-26 15:48:24 -07:00
parent 2e5da27420
commit 5df64dbe4e
3 changed files with 16 additions and 3 deletions

View File

@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
## [2.9.3] - [2018-07-26](https://github.com/react-navigation/react-navigation/releases/tag/2.9.3)
### Added
- Add `NavigationTestUtils` which can be imported by path to be used with jest snapshot testing.
## [2.9.2] - [2018-07-25](https://github.com/react-navigation/react-navigation/releases/tag/2.9.2)
### Added
- Export `StackViewTransitionConfigs` to allow you to extend default config in custom transition configs. [#4761](https://github.com/react-navigation/react-navigation/pull/4761)
@@ -115,7 +119,8 @@ 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.9.2...HEAD
[Unreleased]: https://github.com/react-navigation/react-navigation/compare/2.9.3...HEAD
[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
[2.9.1]: https://github.com/react-navigation/react-navigation/compare/2.9.0...2.9.1
[2.9.0]: https://github.com/react-navigation/react-navigation/compare/2.8.0...2.9.0

View File

@@ -0,0 +1,7 @@
import { _TESTING_ONLY_reset_container_count } from './src/createNavigationContainer';
export default {
resetInternalState: () => {
_TESTING_ONLY_reset_container_count();
},
};

View File

@@ -1,6 +1,6 @@
{
"name": "react-navigation",
"version": "2.9.2",
"version": "2.9.3",
"description": "Routing and navigation for your React Native apps",
"main": "src/react-navigation.js",
"repository": {
@@ -22,7 +22,8 @@
"precommit": "lint-staged"
},
"files": [
"src"
"src",
"NavigationTestUtils.js"
],
"peerDependencies": {
"react": "*",