Compare commits

..

7 Commits

Author SHA1 Message Date
Satyajit Sahoo
06f43549db chore: publish
- react-navigation-animated-switch@0.5.2
 - react-navigation-drawer@2.4.2
 - react-navigation-material-bottom-tabs@2.2.2
 - react-navigation@4.2.2
 - react-navigation-stack@2.2.2
 - react-navigation-tabs@2.8.2
2020-02-26 20:11:37 +01:00
Satyajit Sahoo
741f38a028 chore: run clean before release 2020-02-26 20:10:25 +01:00
Satyajit Sahoo
3bb2c196e4 fix: fix typescript errors in the definition file 2020-02-26 20:09:03 +01:00
Satyajit Sahoo
77db2eaf62 chore: publish
- react-navigation-animated-switch@0.5.1
 - @react-navigation/core@3.6.1
 - react-navigation-drawer@2.4.1
 - react-navigation-material-bottom-tabs@2.2.1
 - @react-navigation/native@3.7.3
 - react-navigation@4.2.1
 - react-navigation-stack@2.2.1
 - react-navigation-tabs@2.8.1
2020-02-24 20:00:33 +01:00
Satyajit Sahoo
fc24ebd16c fix: fix file extensions. closes #7246 2020-02-24 19:59:25 +01:00
Satyajit Sahoo
41e1272507 chore: fix publish for native 2020-02-24 19:13:02 +01:00
Satyajit Sahoo
7ad6de59cb chore: fix publish for native
closes #7124
2020-02-24 18:13:59 +01:00
41 changed files with 217 additions and 86 deletions

View File

@@ -20,6 +20,7 @@
"lint": "eslint --ext '.js,.ts,.tsx' .", "lint": "eslint --ext '.js,.ts,.tsx' .",
"typescript": "tsc --noEmit", "typescript": "tsc --noEmit",
"test": "jest", "test": "jest",
"prerelease": "yarn lerna run clean",
"release": "yarn lerna publish", "release": "yarn lerna publish",
"example": "yarn --cwd example" "example": "yarn --cwd example"
}, },

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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
# 0.5.0 (2020-02-24) # 0.5.0 (2020-02-24)

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-navigation-animated-switch", "name": "react-navigation-animated-switch",
"version": "0.5.0", "version": "0.5.2",
"description": "Animated switch for React Navigation", "description": "Animated switch for React Navigation",
"main": "lib/commonjs/index.js", "main": "lib/commonjs/index.js",
"react-native": "lib/module/index.js", "react-native": "lib/module/index.js",
@@ -28,7 +28,7 @@
"react": "~16.9.0", "react": "~16.9.0",
"react-native": "~0.61.5", "react-native": "~0.61.5",
"react-native-reanimated": "~1.7.0", "react-native-reanimated": "~1.7.0",
"react-navigation": "^4.2.0", "react-navigation": "^4.2.2",
"typescript": "~3.7.5" "typescript": "~3.7.5"
}, },
"peerDependencies": { "peerDependencies": {

View File

@@ -0,0 +1,13 @@
{
"settings": {
"import/extensions": [".js", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".tsx"]
}
}
}
}

View File

@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.6.1](https://github.com/react-navigation/react-navigation-core/compare/@react-navigation/core@3.6.0...@react-navigation/core@3.6.1) (2020-02-24)
### Bug Fixes
* fix file extensions. closes [#7246](https://github.com/react-navigation/react-navigation-core/issues/7246) ([fc24ebd](https://github.com/react-navigation/react-navigation-core/commit/fc24ebd16c1010be4caaf3ead705909f283532f4))
# 3.6.0 (2020-02-24) # 3.6.0 (2020-02-24)

View File

@@ -1,6 +1,6 @@
{ {
"name": "@react-navigation/core", "name": "@react-navigation/core",
"version": "3.6.0", "version": "3.6.1",
"description": "Core utilities for the react-navigation framework", "description": "Core utilities for the react-navigation framework",
"main": "lib/commonjs/index.js", "main": "lib/commonjs/index.js",
"react-native": "lib/module/index.js", "react-native": "lib/module/index.js",

View File

@@ -1,4 +1,4 @@
import invariant from './utils/invariant.ts'; import invariant from './utils/invariant';
/** /**
* Utilities to perform atomic operation with navigate state and routes. * Utilities to perform atomic operation with navigate state and routes.

View File

@@ -1,4 +1,4 @@
import * as NavigationActions from '../NavigationActions.ts'; import * as NavigationActions from '../NavigationActions';
describe('generic navigation actions', () => { describe('generic navigation actions', () => {
const params = { foo: 'bar' }; const params = { foo: 'bar' };

View File

@@ -1,6 +1,6 @@
import getChildEventSubscriber from './getChildEventSubscriber'; import getChildEventSubscriber from './getChildEventSubscriber';
import getChildRouter from './getChildRouter.ts'; import getChildRouter from './getChildRouter';
import getNavigationActionCreators from './routers/getNavigationActionCreators.ts'; import getNavigationActionCreators from './routers/getNavigationActionCreators';
import getChildrenNavigationCache from './getChildrenNavigationCache'; import getChildrenNavigationCache from './getChildrenNavigationCache';
const createParamGetter = route => (paramName, defaultValue) => { const createParamGetter = route => (paramName, defaultValue) => {

View File

@@ -1,4 +1,4 @@
import getNavigationActionCreators from './routers/getNavigationActionCreators.ts'; import getNavigationActionCreators from './routers/getNavigationActionCreators';
import getChildNavigation from './getChildNavigation'; import getChildNavigation from './getChildNavigation';
import getChildrenNavigationCache from './getChildrenNavigationCache'; import getChildrenNavigationCache from './getChildrenNavigationCache';

View File

@@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import invariant from '../utils/invariant.ts'; import invariant from '../utils/invariant';
import ThemeContext from '../views/ThemeContext.ts'; import ThemeContext from '../views/ThemeContext';
function createNavigator(NavigatorView, router, navigationConfig) { function createNavigator(NavigatorView, router, navigationConfig) {
class Navigator extends React.Component { class Navigator extends React.Component {

View File

@@ -1,11 +1,11 @@
import * as NavigationActions from '../NavigationActions.ts'; import * as NavigationActions from '../NavigationActions';
import * as StackActions from './StackActions'; import * as StackActions from './StackActions';
import createConfigGetter from './createConfigGetter'; import createConfigGetter from './createConfigGetter';
import getScreenForRouteName from './getScreenForRouteName'; import getScreenForRouteName from './getScreenForRouteName';
import StateUtils from '../StateUtils'; import StateUtils from '../StateUtils';
import validateRouteConfigMap from './validateRouteConfigMap'; import validateRouteConfigMap from './validateRouteConfigMap';
import invariant from '../utils/invariant.ts'; import invariant from '../utils/invariant';
import { generateKey } from './KeyGenerator.ts'; import { generateKey } from './KeyGenerator';
import { createPathParser } from './pathUtils'; import { createPathParser } from './pathUtils';
function behavesLikePushAction(action) { function behavesLikePushAction(action) {

View File

@@ -1,9 +1,9 @@
import invariant from '../utils/invariant.ts'; import invariant from '../utils/invariant';
import getScreenForRouteName from './getScreenForRouteName'; import getScreenForRouteName from './getScreenForRouteName';
import createConfigGetter from './createConfigGetter'; import createConfigGetter from './createConfigGetter';
import * as NavigationActions from '../NavigationActions.ts'; import * as NavigationActions from '../NavigationActions';
import * as SwitchActions from './SwitchActions.ts'; import * as SwitchActions from './SwitchActions';
import * as StackActions from './StackActions'; import * as StackActions from './StackActions';
import validateRouteConfigMap from './validateRouteConfigMap'; import validateRouteConfigMap from './validateRouteConfigMap';
import { createPathParser } from './pathUtils'; import { createPathParser } from './pathUtils';

View File

@@ -5,8 +5,8 @@ import React from 'react';
import SwitchRouter from '../SwitchRouter'; import SwitchRouter from '../SwitchRouter';
import StackRouter from '../StackRouter'; import StackRouter from '../StackRouter';
import TabRouter from '../TabRouter'; import TabRouter from '../TabRouter';
import * as NavigationActions from '../../NavigationActions.ts'; import * as NavigationActions from '../../NavigationActions';
import { _TESTING_ONLY_normalize_keys } from '../KeyGenerator.ts'; import { _TESTING_ONLY_normalize_keys } from '../KeyGenerator';
beforeEach(() => { beforeEach(() => {
_TESTING_ONLY_normalize_keys(); _TESTING_ONLY_normalize_keys();

View File

@@ -6,9 +6,9 @@ import StackRouter from '../StackRouter';
import TabRouter from '../TabRouter'; import TabRouter from '../TabRouter';
import SwitchRouter from '../SwitchRouter'; import SwitchRouter from '../SwitchRouter';
import * as NavigationActions from '../../NavigationActions.ts'; import * as NavigationActions from '../../NavigationActions';
import * as StackActions from '../StackActions'; import * as StackActions from '../StackActions';
import { _TESTING_ONLY_normalize_keys } from '../KeyGenerator.ts'; import { _TESTING_ONLY_normalize_keys } from '../KeyGenerator';
beforeEach(() => { beforeEach(() => {
_TESTING_ONLY_normalize_keys(); _TESTING_ONLY_normalize_keys();

View File

@@ -4,8 +4,8 @@ import React from 'react';
import StackRouter from '../StackRouter'; import StackRouter from '../StackRouter';
import * as StackActions from '../StackActions'; import * as StackActions from '../StackActions';
import * as NavigationActions from '../../NavigationActions.ts'; import * as NavigationActions from '../../NavigationActions';
import { _TESTING_ONLY_normalize_keys } from '../KeyGenerator.ts'; import { _TESTING_ONLY_normalize_keys } from '../KeyGenerator';
beforeEach(() => { beforeEach(() => {
_TESTING_ONLY_normalize_keys(); _TESTING_ONLY_normalize_keys();

View File

@@ -3,7 +3,7 @@
import React from 'react'; import React from 'react';
import SwitchRouter from '../SwitchRouter'; import SwitchRouter from '../SwitchRouter';
import StackRouter from '../StackRouter'; import StackRouter from '../StackRouter';
import * as NavigationActions from '../../NavigationActions.ts'; import * as NavigationActions from '../../NavigationActions';
import { getRouterTestHelper } from './routerTestHelper'; import { getRouterTestHelper } from './routerTestHelper';
describe('SwitchRouter', () => { describe('SwitchRouter', () => {

View File

@@ -3,7 +3,7 @@
import React from 'react'; import React from 'react';
import TabRouter from '../TabRouter'; import TabRouter from '../TabRouter';
import * as NavigationActions from '../../NavigationActions.ts'; import * as NavigationActions from '../../NavigationActions';
const INIT_ACTION = { type: NavigationActions.INIT }; const INIT_ACTION = { type: NavigationActions.INIT };

View File

@@ -1,5 +1,5 @@
import * as NavigationActions from '../../NavigationActions.ts'; import * as NavigationActions from '../../NavigationActions';
import * as SwitchActions from '../../routers/SwitchActions.ts'; import * as SwitchActions from '../../routers/SwitchActions';
import * as StackActions from '../../routers/StackActions'; import * as StackActions from '../../routers/StackActions';
// A simple helper that makes it easier to write basic routing tests // A simple helper that makes it easier to write basic routing tests

View File

@@ -1,4 +1,4 @@
import invariant from '../utils/invariant.ts'; import invariant from '../utils/invariant';
import getScreenForRouteName from './getScreenForRouteName'; import getScreenForRouteName from './getScreenForRouteName';
import validateScreenOptions from './validateScreenOptions'; import validateScreenOptions from './validateScreenOptions';

View File

@@ -1,6 +1,6 @@
import { isValidElementType } from 'react-is'; import { isValidElementType } from 'react-is';
import invariant from '../utils/invariant.ts'; import invariant from '../utils/invariant';
/** /**
* Simple helper that gets a single screen (React component or navigator) * Simple helper that gets a single screen (React component or navigator)

View File

@@ -1,8 +1,8 @@
/* eslint-disable import/no-commonjs */ /* eslint-disable import/no-commonjs */
import pathToRegexp, { compile } from 'path-to-regexp'; import pathToRegexp, { compile } from 'path-to-regexp';
import * as NavigationActions from '../NavigationActions.ts'; import * as NavigationActions from '../NavigationActions';
import invariant from '../utils/invariant.ts'; import invariant from '../utils/invariant';
const queryString = require('query-string'); const queryString = require('query-string');

View File

@@ -1,6 +1,6 @@
import { isValidElementType } from 'react-is'; import { isValidElementType } from 'react-is';
import invariant from '../utils/invariant.ts'; import invariant from '../utils/invariant';
/** /**
* Make sure the config passed e.g. to StackRouter, TabRouter has * Make sure the config passed e.g. to StackRouter, TabRouter has

View File

@@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import NavigationContext from './NavigationContext.ts'; import NavigationContext from './NavigationContext';
export default class SceneView extends React.PureComponent { export default class SceneView extends React.PureComponent {
render() { render() {

View File

@@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import renderer from 'react-test-renderer'; import renderer from 'react-test-renderer';
import NavigationEvents from '../NavigationEvents'; import NavigationEvents from '../NavigationEvents';
import NavigationContext from '../NavigationContext.ts'; import NavigationContext from '../NavigationContext';
const createPropListener = () => jest.fn(); const createPropListener = () => jest.fn();

View File

@@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import hoistStatics from 'hoist-non-react-statics'; import hoistStatics from 'hoist-non-react-statics';
import invariant from '../utils/invariant.ts'; import invariant from '../utils/invariant';
import NavigationContext from './NavigationContext.ts'; import NavigationContext from './NavigationContext';
export default function withNavigation( export default function withNavigation(
Component, Component,

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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
# 2.4.0 (2020-02-24) # 2.4.0 (2020-02-24)

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-navigation-drawer", "name": "react-navigation-drawer",
"version": "2.4.0", "version": "2.4.2",
"description": "Drawer navigator component for React Navigation", "description": "Drawer navigator component for React Navigation",
"main": "lib/commonjs/index.js", "main": "lib/commonjs/index.js",
"react-native": "lib/module/index.js", "react-native": "lib/module/index.js",
@@ -49,7 +49,7 @@
"react-native-reanimated": "^1.2.0", "react-native-reanimated": "^1.2.0",
"react-native-screens": "^2.0.0-beta.10", "react-native-screens": "^2.0.0-beta.10",
"react-native-testing-library": "^1.12.0", "react-native-testing-library": "^1.12.0",
"react-navigation": "^4.2.0", "react-navigation": "^4.2.2",
"typescript": "~3.7.5" "typescript": "~3.7.5"
}, },
"peerDependencies": { "peerDependencies": {

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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
# 2.2.0 (2020-02-24) # 2.2.0 (2020-02-24)

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-navigation-material-bottom-tabs", "name": "react-navigation-material-bottom-tabs",
"version": "2.2.0", "version": "2.2.2",
"description": "Material Bottom Tab Navigation component for React Navigation", "description": "Material Bottom Tab Navigation component for React Navigation",
"main": "lib/commonjs/index.js", "main": "lib/commonjs/index.js",
"module": "lib/module/index.js", "module": "lib/module/index.js",
@@ -48,7 +48,7 @@
"react-native-gesture-handler": "^1.6.0", "react-native-gesture-handler": "^1.6.0",
"react-native-paper": "^3.1.1", "react-native-paper": "^3.1.1",
"react-native-reanimated": "^1.2.0", "react-native-reanimated": "^1.2.0",
"react-navigation": "^4.2.0", "react-navigation": "^4.2.2",
"typescript": "~3.7.5" "typescript": "~3.7.5"
}, },
"peerDependencies": { "peerDependencies": {

View File

@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.7.3](https://github.com/react-navigation/react-navigation-native/compare/@react-navigation/native@3.7.0...@react-navigation/native@3.7.3) (2020-02-24)
**Note:** Version bump only for package @react-navigation/native
# 3.7.0 (2020-02-24) # 3.7.0 (2020-02-24)

View File

@@ -1,6 +1,6 @@
{ {
"name": "@react-navigation/native", "name": "@react-navigation/native",
"version": "3.7.0", "version": "3.7.3",
"description": "React Native support for React Navigation", "description": "React Native support for React Navigation",
"main": "lib/commonjs/index.js", "main": "lib/commonjs/index.js",
"react-native": "lib/module/index.js", "react-native": "lib/module/index.js",
@@ -9,6 +9,10 @@
"src", "src",
"lib" "lib"
], ],
"scripts": {
"prepare": "bob build",
"clean": "del lib"
},
"sideEffects": false, "sideEffects": false,
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
@@ -34,7 +38,8 @@
"react-native-safe-area-view": "^0.14.8" "react-native-safe-area-view": "^0.14.8"
}, },
"devDependencies": { "devDependencies": {
"@react-navigation/core": "^3.6.0", "@react-native-community/bob": "^0.9.7",
"@react-navigation/core": "^3.6.1",
"@types/react-test-renderer": "^16.9.2", "@types/react-test-renderer": "^16.9.2",
"del-cli": "^3.0.0", "del-cli": "^3.0.0",
"react": "~16.9.0", "react": "~16.9.0",

View File

@@ -3,6 +3,25 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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
# 4.2.0 (2020-02-24) # 4.2.0 (2020-02-24)

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-navigation", "name": "react-navigation",
"version": "4.2.0", "version": "4.2.2",
"description": "Routing and navigation for your React Native apps", "description": "Routing and navigation for your React Native apps",
"main": "src/index.js", "main": "src/index.js",
"types": "typescript/react-navigation.d.ts", "types": "typescript/react-navigation.d.ts",
@@ -24,8 +24,8 @@
"react-native": "*" "react-native": "*"
}, },
"dependencies": { "dependencies": {
"@react-navigation/core": "^3.6.0", "@react-navigation/core": "^3.6.1",
"@react-navigation/native": "^3.7.0" "@react-navigation/native": "^3.7.3"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^16.9.22", "@types/react": "^16.9.22",

View File

@@ -690,21 +690,21 @@ export function createSwitchNavigator(
* NavigationActions * NavigationActions
*/ */
export namespace NavigationActions { export namespace NavigationActions {
declare const BACK: 'Navigation/BACK'; export const BACK: 'Navigation/BACK';
declare const INIT: 'Navigation/INIT'; export const INIT: 'Navigation/INIT';
declare const NAVIGATE: 'Navigation/NAVIGATE'; export const NAVIGATE: 'Navigation/NAVIGATE';
declare const SET_PARAMS: 'Navigation/SET_PARAMS'; export const SET_PARAMS: 'Navigation/SET_PARAMS';
declare function init( export function init(
options?: NavigationInitActionPayload options?: NavigationInitActionPayload
): NavigationInitAction; ): NavigationInitAction;
declare function navigate( export function navigate(
options: NavigationNavigateActionPayload options: NavigationNavigateActionPayload
): NavigationNavigateAction; ): NavigationNavigateAction;
declare function back( export function back(
options?: NavigationBackActionPayload options?: NavigationBackActionPayload
): NavigationBackAction; ): NavigationBackAction;
declare function setParams( export function setParams(
options: NavigationSetParamsActionPayload options: NavigationSetParamsActionPayload
): NavigationSetParamsAction; ): NavigationSetParamsAction;
} }
@@ -713,45 +713,43 @@ export namespace NavigationActions {
* DrawerActions * DrawerActions
*/ */
export namespace DrawerActions { export namespace DrawerActions {
declare const OPEN_DRAWER: 'Navigation/OPEN_DRAWER'; export const OPEN_DRAWER: 'Navigation/OPEN_DRAWER';
declare const CLOSE_DRAWER: 'Navigation/CLOSE_DRAWER'; export const CLOSE_DRAWER: 'Navigation/CLOSE_DRAWER';
declare const TOGGLE_DRAWER: 'Navigation/TOGGLE_DRAWER'; export const TOGGLE_DRAWER: 'Navigation/TOGGLE_DRAWER';
declare function openDrawer(): NavigationOpenDrawerAction; export function openDrawer(): NavigationOpenDrawerAction;
declare function closeDrawer(): NavigationCloseDrawerAction; export function closeDrawer(): NavigationCloseDrawerAction;
declare function toggleDrawer(): NavigationToggleDrawerAction; export function toggleDrawer(): NavigationToggleDrawerAction;
} }
/** /**
* StackActions * StackActions
*/ */
export namespace StackActions { export namespace StackActions {
declare const POP: 'Navigation/POP'; export const POP: 'Navigation/POP';
declare const POP_TO_TOP: 'Navigation/POP_TO_TOP'; export const POP_TO_TOP: 'Navigation/POP_TO_TOP';
declare const PUSH: 'Navigation/PUSH'; export const PUSH: 'Navigation/PUSH';
declare const RESET: 'Navigation/RESET'; export const RESET: 'Navigation/RESET';
declare const REPLACE: 'Navigation/REPLACE'; export const REPLACE: 'Navigation/REPLACE';
declare const COMPLETE_TRANSITION: 'Navigation/COMPLETE_TRANSITION'; export const COMPLETE_TRANSITION: 'Navigation/COMPLETE_TRANSITION';
declare function pop( export function pop(options: NavigationPopActionPayload): NavigationPopAction;
options: NavigationPopActionPayload export function popToTop(
): NavigationPopAction;
declare function popToTop(
options?: NavigationPopToTopActionPayload options?: NavigationPopToTopActionPayload
): NavigationPopToTopAction; ): NavigationPopToTopAction;
declare function push( export function push(
options: NavigationPushActionPayload options: NavigationPushActionPayload
): NavigationPushAction; ): NavigationPushAction;
declare function reset( export function reset(
options: NavigationResetActionPayload options: NavigationResetActionPayload
): NavigationResetAction; ): NavigationResetAction;
declare function replace( export function replace(
options: NavigationReplaceActionPayload options: NavigationReplaceActionPayload
): NavigationReplaceAction; ): NavigationReplaceAction;
declare function completeTransition( export function completeTransition(
payload?: NavigationCompleteTransitionActionPayload payload?: NavigationCompleteTransitionActionPayload
): NavigationCompleteTransitionAction; ): NavigationCompleteTransitionAction;
} }
@@ -760,9 +758,9 @@ export namespace StackActions {
* SwitchActions * SwitchActions
*/ */
export namespace 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 options: NavigationJumpToActionPayload
): NavigationJumpToAction; ): NavigationJumpToAction;
} }

View File

@@ -3,6 +3,25 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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
# 2.2.0 (2020-02-24) # 2.2.0 (2020-02-24)

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-navigation-stack", "name": "react-navigation-stack",
"version": "2.2.0", "version": "2.2.2",
"description": "Stack navigator component for React Navigation", "description": "Stack navigator component for React Navigation",
"main": "lib/commonjs/index.js", "main": "lib/commonjs/index.js",
"module": "lib/module/index.js", "module": "lib/module/index.js",
@@ -56,7 +56,7 @@
"react-native-gesture-handler": "^1.6.0", "react-native-gesture-handler": "^1.6.0",
"react-native-safe-area-context": "^0.7.3", "react-native-safe-area-context": "^0.7.3",
"react-native-screens": "^2.0.0-beta.10", "react-native-screens": "^2.0.0-beta.10",
"react-navigation": "^4.2.0", "react-navigation": "^4.2.2",
"react-test-renderer": "~16.9.0", "react-test-renderer": "~16.9.0",
"typescript": "~3.7.5" "typescript": "~3.7.5"
}, },

View File

@@ -1,7 +0,0 @@
declare module '*.png' {
import { ImageSourcePropType } from 'react-native';
declare const value: ImageSourcePropType;
export default value;
}

View File

@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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
# 2.8.0 (2020-02-24) # 2.8.0 (2020-02-24)

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-navigation-tabs", "name": "react-navigation-tabs",
"version": "2.8.0", "version": "2.8.2",
"description": "Tab Navigation components for React Navigation", "description": "Tab Navigation components for React Navigation",
"main": "lib/commonjs/index.js", "main": "lib/commonjs/index.js",
"module": "lib/module/index.js", "module": "lib/module/index.js",
@@ -56,7 +56,7 @@
"react-native-gesture-handler": "^1.6.0", "react-native-gesture-handler": "^1.6.0",
"react-native-reanimated": "^1.2.0", "react-native-reanimated": "^1.2.0",
"react-native-tab-view": "^2.13.0", "react-native-tab-view": "^2.13.0",
"react-navigation": "^4.2.0", "react-navigation": "^4.2.2",
"typescript": "~3.7.5" "typescript": "~3.7.5"
}, },
"peerDependencies": { "peerDependencies": {

View File

@@ -17,7 +17,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"jsx": "react", "jsx": "react",
"lib": ["esnext", "dom"], "lib": ["esnext"],
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "node",
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,