mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-23 12:28:23 +08:00
Compare commits
3 Commits
react-navi
...
react-navi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06f43549db | ||
|
|
741f38a028 | ||
|
|
3bb2c196e4 |
@@ -20,6 +20,7 @@
|
||||
"lint": "eslint --ext '.js,.ts,.tsx' .",
|
||||
"typescript": "tsc --noEmit",
|
||||
"test": "jest",
|
||||
"prerelease": "yarn lerna run clean",
|
||||
"release": "yarn lerna publish",
|
||||
"example": "yarn --cwd example"
|
||||
},
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [0.5.2](https://github.com/react-navigation/react-navigation/compare/react-navigation-animated-switch@0.5.1...react-navigation-animated-switch@0.5.2) (2020-02-26)
|
||||
|
||||
**Note:** Version bump only for package react-navigation-animated-switch
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [0.5.1](https://github.com/react-navigation/react-navigation/compare/react-navigation-animated-switch@0.5.0...react-navigation-animated-switch@0.5.1) (2020-02-24)
|
||||
|
||||
**Note:** Version bump only for package react-navigation-animated-switch
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-navigation-animated-switch",
|
||||
"version": "0.5.1",
|
||||
"version": "0.5.2",
|
||||
"description": "Animated switch for React Navigation",
|
||||
"main": "lib/commonjs/index.js",
|
||||
"react-native": "lib/module/index.js",
|
||||
@@ -28,7 +28,7 @@
|
||||
"react": "~16.9.0",
|
||||
"react-native": "~0.61.5",
|
||||
"react-native-reanimated": "~1.7.0",
|
||||
"react-navigation": "^4.2.1",
|
||||
"react-navigation": "^4.2.2",
|
||||
"typescript": "~3.7.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.4.2](https://github.com/react-navigation/drawer/compare/react-navigation-drawer@2.4.1...react-navigation-drawer@2.4.2) (2020-02-26)
|
||||
|
||||
**Note:** Version bump only for package react-navigation-drawer
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.4.1](https://github.com/react-navigation/drawer/compare/react-navigation-drawer@2.4.0...react-navigation-drawer@2.4.1) (2020-02-24)
|
||||
|
||||
**Note:** Version bump only for package react-navigation-drawer
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-navigation-drawer",
|
||||
"version": "2.4.1",
|
||||
"version": "2.4.2",
|
||||
"description": "Drawer navigator component for React Navigation",
|
||||
"main": "lib/commonjs/index.js",
|
||||
"react-native": "lib/module/index.js",
|
||||
@@ -49,7 +49,7 @@
|
||||
"react-native-reanimated": "^1.2.0",
|
||||
"react-native-screens": "^2.0.0-beta.10",
|
||||
"react-native-testing-library": "^1.12.0",
|
||||
"react-navigation": "^4.2.1",
|
||||
"react-navigation": "^4.2.2",
|
||||
"typescript": "~3.7.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.2.2](https://github.com/react-navigation/react-navigation-material-bottom-tabs/compare/react-navigation-material-bottom-tabs@2.2.1...react-navigation-material-bottom-tabs@2.2.2) (2020-02-26)
|
||||
|
||||
**Note:** Version bump only for package react-navigation-material-bottom-tabs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.2.1](https://github.com/react-navigation/react-navigation-material-bottom-tabs/compare/react-navigation-material-bottom-tabs@2.2.0...react-navigation-material-bottom-tabs@2.2.1) (2020-02-24)
|
||||
|
||||
**Note:** Version bump only for package react-navigation-material-bottom-tabs
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-navigation-material-bottom-tabs",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "Material Bottom Tab Navigation component for React Navigation",
|
||||
"main": "lib/commonjs/index.js",
|
||||
"module": "lib/module/index.js",
|
||||
@@ -48,7 +48,7 @@
|
||||
"react-native-gesture-handler": "^1.6.0",
|
||||
"react-native-paper": "^3.1.1",
|
||||
"react-native-reanimated": "^1.2.0",
|
||||
"react-navigation": "^4.2.1",
|
||||
"react-navigation": "^4.2.2",
|
||||
"typescript": "~3.7.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -3,6 +3,17 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [4.2.2](https://github.com/react-navigation/react-navigation/compare/react-navigation@4.2.1...react-navigation@4.2.2) (2020-02-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix typescript errors in the definition file ([3bb2c19](https://github.com/react-navigation/react-navigation/commit/3bb2c196e4acfa069791003c2b448b5ab51004d2))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.2.1](https://github.com/react-navigation/react-navigation/compare/react-navigation@4.2.0...react-navigation@4.2.1) (2020-02-24)
|
||||
|
||||
**Note:** Version bump only for package react-navigation
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-navigation",
|
||||
"version": "4.2.1",
|
||||
"version": "4.2.2",
|
||||
"description": "Routing and navigation for your React Native apps",
|
||||
"main": "src/index.js",
|
||||
"types": "typescript/react-navigation.d.ts",
|
||||
|
||||
@@ -690,21 +690,21 @@ export function createSwitchNavigator(
|
||||
* NavigationActions
|
||||
*/
|
||||
export namespace NavigationActions {
|
||||
declare const BACK: 'Navigation/BACK';
|
||||
declare const INIT: 'Navigation/INIT';
|
||||
declare const NAVIGATE: 'Navigation/NAVIGATE';
|
||||
declare const SET_PARAMS: 'Navigation/SET_PARAMS';
|
||||
export const BACK: 'Navigation/BACK';
|
||||
export const INIT: 'Navigation/INIT';
|
||||
export const NAVIGATE: 'Navigation/NAVIGATE';
|
||||
export const SET_PARAMS: 'Navigation/SET_PARAMS';
|
||||
|
||||
declare function init(
|
||||
export function init(
|
||||
options?: NavigationInitActionPayload
|
||||
): NavigationInitAction;
|
||||
declare function navigate(
|
||||
export function navigate(
|
||||
options: NavigationNavigateActionPayload
|
||||
): NavigationNavigateAction;
|
||||
declare function back(
|
||||
export function back(
|
||||
options?: NavigationBackActionPayload
|
||||
): NavigationBackAction;
|
||||
declare function setParams(
|
||||
export function setParams(
|
||||
options: NavigationSetParamsActionPayload
|
||||
): NavigationSetParamsAction;
|
||||
}
|
||||
@@ -713,45 +713,43 @@ export namespace NavigationActions {
|
||||
* DrawerActions
|
||||
*/
|
||||
export namespace DrawerActions {
|
||||
declare const OPEN_DRAWER: 'Navigation/OPEN_DRAWER';
|
||||
declare const CLOSE_DRAWER: 'Navigation/CLOSE_DRAWER';
|
||||
declare const TOGGLE_DRAWER: 'Navigation/TOGGLE_DRAWER';
|
||||
export const OPEN_DRAWER: 'Navigation/OPEN_DRAWER';
|
||||
export const CLOSE_DRAWER: 'Navigation/CLOSE_DRAWER';
|
||||
export const TOGGLE_DRAWER: 'Navigation/TOGGLE_DRAWER';
|
||||
|
||||
declare function openDrawer(): NavigationOpenDrawerAction;
|
||||
declare function closeDrawer(): NavigationCloseDrawerAction;
|
||||
declare function toggleDrawer(): NavigationToggleDrawerAction;
|
||||
export function openDrawer(): NavigationOpenDrawerAction;
|
||||
export function closeDrawer(): NavigationCloseDrawerAction;
|
||||
export function toggleDrawer(): NavigationToggleDrawerAction;
|
||||
}
|
||||
|
||||
/**
|
||||
* StackActions
|
||||
*/
|
||||
export namespace StackActions {
|
||||
declare const POP: 'Navigation/POP';
|
||||
declare const POP_TO_TOP: 'Navigation/POP_TO_TOP';
|
||||
declare const PUSH: 'Navigation/PUSH';
|
||||
declare const RESET: 'Navigation/RESET';
|
||||
declare const REPLACE: 'Navigation/REPLACE';
|
||||
declare const COMPLETE_TRANSITION: 'Navigation/COMPLETE_TRANSITION';
|
||||
export const POP: 'Navigation/POP';
|
||||
export const POP_TO_TOP: 'Navigation/POP_TO_TOP';
|
||||
export const PUSH: 'Navigation/PUSH';
|
||||
export const RESET: 'Navigation/RESET';
|
||||
export const REPLACE: 'Navigation/REPLACE';
|
||||
export const COMPLETE_TRANSITION: 'Navigation/COMPLETE_TRANSITION';
|
||||
|
||||
declare function pop(
|
||||
options: NavigationPopActionPayload
|
||||
): NavigationPopAction;
|
||||
declare function popToTop(
|
||||
export function pop(options: NavigationPopActionPayload): NavigationPopAction;
|
||||
export function popToTop(
|
||||
options?: NavigationPopToTopActionPayload
|
||||
): NavigationPopToTopAction;
|
||||
|
||||
declare function push(
|
||||
export function push(
|
||||
options: NavigationPushActionPayload
|
||||
): NavigationPushAction;
|
||||
declare function reset(
|
||||
export function reset(
|
||||
options: NavigationResetActionPayload
|
||||
): NavigationResetAction;
|
||||
|
||||
declare function replace(
|
||||
export function replace(
|
||||
options: NavigationReplaceActionPayload
|
||||
): NavigationReplaceAction;
|
||||
|
||||
declare function completeTransition(
|
||||
export function completeTransition(
|
||||
payload?: NavigationCompleteTransitionActionPayload
|
||||
): NavigationCompleteTransitionAction;
|
||||
}
|
||||
@@ -760,9 +758,9 @@ export namespace StackActions {
|
||||
* SwitchActions
|
||||
*/
|
||||
export namespace SwitchActions {
|
||||
declare const JUMP_TO: 'Navigation/JUMP_TO';
|
||||
export const JUMP_TO: 'Navigation/JUMP_TO';
|
||||
|
||||
declare function jumpTo(
|
||||
export function jumpTo(
|
||||
options: NavigationJumpToActionPayload
|
||||
): NavigationJumpToAction;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,17 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.2.2](https://github.com/react-navigation/react-navigation-stack/compare/react-navigation-stack@2.2.1...react-navigation-stack@2.2.2) (2020-02-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix typescript errors in the definition file ([3bb2c19](https://github.com/react-navigation/react-navigation-stack/commit/3bb2c196e4acfa069791003c2b448b5ab51004d2))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.2.1](https://github.com/react-navigation/react-navigation-stack/compare/react-navigation-stack@2.2.0...react-navigation-stack@2.2.1) (2020-02-24)
|
||||
|
||||
**Note:** Version bump only for package react-navigation-stack
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-navigation-stack",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "Stack navigator component for React Navigation",
|
||||
"main": "lib/commonjs/index.js",
|
||||
"module": "lib/module/index.js",
|
||||
@@ -56,7 +56,7 @@
|
||||
"react-native-gesture-handler": "^1.6.0",
|
||||
"react-native-safe-area-context": "^0.7.3",
|
||||
"react-native-screens": "^2.0.0-beta.10",
|
||||
"react-navigation": "^4.2.1",
|
||||
"react-navigation": "^4.2.2",
|
||||
"react-test-renderer": "~16.9.0",
|
||||
"typescript": "~3.7.5"
|
||||
},
|
||||
|
||||
7
packages/stack/types/index.d.ts
vendored
7
packages/stack/types/index.d.ts
vendored
@@ -1,7 +0,0 @@
|
||||
declare module '*.png' {
|
||||
import { ImageSourcePropType } from 'react-native';
|
||||
|
||||
declare const value: ImageSourcePropType;
|
||||
|
||||
export default value;
|
||||
}
|
||||
@@ -3,6 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [2.8.2](https://github.com/react-navigation/tabs/compare/react-navigation-tabs@2.8.1...react-navigation-tabs@2.8.2) (2020-02-26)
|
||||
|
||||
**Note:** Version bump only for package react-navigation-tabs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [2.8.1](https://github.com/react-navigation/tabs/compare/react-navigation-tabs@2.8.0...react-navigation-tabs@2.8.1) (2020-02-24)
|
||||
|
||||
**Note:** Version bump only for package react-navigation-tabs
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-navigation-tabs",
|
||||
"version": "2.8.1",
|
||||
"version": "2.8.2",
|
||||
"description": "Tab Navigation components for React Navigation",
|
||||
"main": "lib/commonjs/index.js",
|
||||
"module": "lib/module/index.js",
|
||||
@@ -56,7 +56,7 @@
|
||||
"react-native-gesture-handler": "^1.6.0",
|
||||
"react-native-reanimated": "^1.2.0",
|
||||
"react-native-tab-view": "^2.13.0",
|
||||
"react-navigation": "^4.2.1",
|
||||
"react-navigation": "^4.2.2",
|
||||
"typescript": "~3.7.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "react",
|
||||
"lib": ["esnext", "dom"],
|
||||
"lib": ["esnext"],
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
||||
Reference in New Issue
Block a user