Compare commits

..

3 Commits
3.4.1 ... 3.5.0

Author SHA1 Message Date
Brent Vatne
368b6812bf Release 3.5.0 2019-03-19 11:05:23 -07:00
Jacob Powers
73d416ec02 Issue-5701: TabBarBottom -> BottomTabBar in type definitions (#5702)
* Issue-5701: TabBarBottom -> BottomTabBar in type definitions

* BottomTabBar changelog update
2019-03-19 10:45:54 -07:00
Julian Hundeloh
89786a39ab fix: export NavigationContext in types (#5707) 2019-03-19 10:44:54 -07:00
4 changed files with 18 additions and 8 deletions

View File

@@ -7,9 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
## [3.5.0] - [2019-03-19](https://github.com/react-navigation/react-navigation/releases/tag/3.5.0)
## Fixed
- Fixed types for `BottomTabBar`
- export `NavigationContext` type
## Changed
- Updated react-native-gesture-handler to ~3.1.0
- Make 'react-native-gesture-handler' a peer dependency rather than a hard dependency
## [3.4.1] - [2019-03-16](https://github.com/react-navigation/react-navigation/releases/tag/3.4.1)
@@ -182,7 +189,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- [2.x](https://github.com/react-navigation/react-navigation/blob/2.x/CHANGELOG.md)
[Unreleased]: https://github.com/react-navigation/react-navigation/compare/3.4.1...HEAD
[Unreleased]: https://github.com/react-navigation/react-navigation/compare/3.5.0...HEAD
[3.5.0]: https://github.com/react-navigation/react-navigation/compare/3.4.1...3.5.0
[3.4.1]: https://github.com/react-navigation/react-navigation/compare/3.4.0...3.4.1
[3.4.0]: https://github.com/react-navigation/react-navigation/compare/3.3.2...3.4.0
[3.3.2]: https://github.com/react-navigation/react-navigation/compare/3.3.1...3.3.2

View File

@@ -1200,7 +1200,7 @@ declare module 'react-navigation' {
};
declare export var TabBarTop: React$ComponentType<_TabBarTopProps>;
declare type _TabBarBottomProps = {
declare type _BottomTabBarProps = {
activeTintColor: string,
activeBackgroundColor: string,
adaptive?: boolean,
@@ -1229,7 +1229,7 @@ declare module 'react-navigation' {
tabStyle?: ViewStyleProp,
showIcon?: boolean,
};
declare export var TabBarBottom: React$ComponentType<_TabBarBottomProps>;
declare export var BottomTabBar: React$ComponentType<_BottomTabBarProps>;
declare export function withNavigation<
Props: {},

View File

@@ -1,6 +1,6 @@
{
"name": "react-navigation",
"version": "3.4.1",
"version": "3.5.0",
"description": "Routing and navigation for your React Native apps",
"main": "src/react-navigation.js",
"types": "typescript/react-navigation.d.ts",
@@ -37,7 +37,7 @@
},
"dependencies": {
"@react-navigation/core": "3.2.0",
"@react-navigation/native": "~3.1.5",
"@react-navigation/native": "~3.3.0",
"react-navigation-drawer": "1.3.0",
"react-navigation-stack": "1.1.1",
"react-navigation-tabs": "1.0.2"

View File

@@ -1102,7 +1102,7 @@ declare module 'react-navigation' {
iconStyle?: ViewStyle;
}
export interface TabBarBottomProps {
export interface BottomTabBarProps {
activeTintColor: string;
activeBackgroundColor: string;
adaptive?: boolean;
@@ -1132,7 +1132,7 @@ declare module 'react-navigation' {
}
export const TabBarTop: React.ComponentType<TabBarTopProps>;
export const TabBarBottom: React.ComponentType<TabBarBottomProps>;
export const BottomTabBar: React.ComponentType<BottomTabBarProps>;
/**
* NavigationActions
@@ -1426,4 +1426,6 @@ declare module 'react-navigation' {
}
export const SafeAreaView: React.ComponentClass<SafeAreaViewProps>;
export const NavigationContext: React.Context<NavigationScreenProp<NavigationRoute>>;
}