mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 04:45:19 +08:00
Add NavigationTestUtils and release 2.9.3
This commit is contained in:
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
## [Unreleased]
|
## [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)
|
## [2.9.2] - [2018-07-25](https://github.com/react-navigation/react-navigation/releases/tag/2.9.2)
|
||||||
### Added
|
### Added
|
||||||
- Export `StackViewTransitionConfigs` to allow you to extend default config in custom transition configs. [#4761](https://github.com/react-navigation/react-navigation/pull/4761)
|
- 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
|
### Changed
|
||||||
- Improved examples
|
- 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.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.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
|
[2.9.0]: https://github.com/react-navigation/react-navigation/compare/2.8.0...2.9.0
|
||||||
|
|||||||
7
packages/react-navigation/NavigationTestUtils.js
vendored
Normal file
7
packages/react-navigation/NavigationTestUtils.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { _TESTING_ONLY_reset_container_count } from './src/createNavigationContainer';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
resetInternalState: () => {
|
||||||
|
_TESTING_ONLY_reset_container_count();
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-navigation",
|
"name": "react-navigation",
|
||||||
"version": "2.9.2",
|
"version": "2.9.3",
|
||||||
"description": "Routing and navigation for your React Native apps",
|
"description": "Routing and navigation for your React Native apps",
|
||||||
"main": "src/react-navigation.js",
|
"main": "src/react-navigation.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -22,7 +22,8 @@
|
|||||||
"precommit": "lint-staged"
|
"precommit": "lint-staged"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"src"
|
"src",
|
||||||
|
"NavigationTestUtils.js"
|
||||||
],
|
],
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "*",
|
"react": "*",
|
||||||
|
|||||||
Reference in New Issue
Block a user