748 Commits

Author SHA1 Message Date
Erwan Baynaud
103f448883 Fix issue undefined is not an object evaluating r.default, see https://github.com/aksonov/react-native-router-flux/issues/3124 (#4699) 2018-09-24 10:56:03 -07:00
Brent Vatne
86ac9b6d5d Update react-native-safe-area-view to support iPhoneXS Max and iPhoneXR 2018-09-19 11:29:54 -07:00
Brent Vatne
4fe72f6627 Release 1.5.13 1.5.13 2018-08-22 17:34:25 -07:00
Jon Leighton
2a7ce9fc8c Bump react-native-safe-area-view dep to 0.9.0 (#4810) (#4854)
https://github.com/react-navigation/react-navigation/issues/3992
2018-08-21 15:41:59 -07:00
Vladimir Podolyan
c8b431773e Fix flow error in type definitions (#4402) 2018-06-03 13:26:14 -07:00
Vladimir Podolyan
66486cecad Fix missing NavigationActions.replace flow type (#4190) 2018-05-27 03:34:48 +07:00
Rob Allsopp
b065b31bb2 [help wanted] Fix missing/incorrect flow types for 1.x branch (#4108)
* add missing method ‘getParam’ to navigation screen prop

* add usage of `getParam` method

* correct return type for ‘withNavigation’

* snapshot updates
2018-05-07 10:46:35 -04:00
Brent Vatne
06d483677c Release 1.5.12 2018-05-03 16:47:45 -07:00
Brent Vatne
d8bcbdd690 Update react-lifecycles-compat 2018-05-03 16:47:13 -07:00
Joe Wilson
1a0ebfeb90 Fix/1.5.11 issue 3266 custom drawer route names (#3978)
* Pass drawer open/close/toggle route names to DrawerSidebar

These props are already available to DrawerView.

* Use the customizable drawerCloseRoute to close the sidebar

* Linting
2018-04-20 16:41:39 +03:00
Ranatchai Chernbamrung
1ebd8f000e - fix flattenedTabStyle.endsWidth is not a function (#3860) 2018-04-09 17:24:12 -07:00
Brent Vatne
a322a6f6d5 Release 1.5.11 v1.5.11 2018-04-05 11:36:19 -07:00
Sean Morton
efa53aab44 Add check for undefined prevState in SwitchRouter (#3856)
* Add check for undefined prevState in SwitchRouter (Fixes #3788)

* Add test coverage
2018-04-05 09:37:25 -07:00
Brent Vatne
3eeea48fa3 Release 1.5.10 v1.5.10 2018-04-04 17:48:14 -07:00
Brent Vatne
3039ce1a5f Another fix for tab bar on iOS 2018-04-04 17:44:54 -07:00
Brent Vatne
cbe46d7303 Bump version v1.5.9 2018-03-31 12:13:16 -07:00
Brent Vatne
11a99c8aaf minHeight not needed, bump up minWidth 2018-03-31 12:12:35 -07:00
Brent Vatne
6b5100c335 Bump dependencies in NavigationPlayground 2018-03-31 12:11:09 -07:00
Brent Vatne
34dd1fe490 Better example for focus including tab bar top 2018-03-31 12:11:09 -07:00
Brent Vatne
0cc9070dcd Add min width and height to tab bar icon due to absolute position layout bug in 0.54 2018-03-31 12:11:09 -07:00
Eric Vicenti
e369c89b81 Add example for extending the Tab navigator (#3775) 2018-03-18 20:14:56 -04:00
Brent Vatne
99bf123ff2 Release 1.5.8 v1.5.8 2018-03-16 07:45:42 -07:00
Brent Vatne
feb93411bc Use react-native-tab-view fork with cherry-picked ViewPagerAndroid fix 2018-03-16 07:43:52 -07:00
Brent Vatne
86f07175fb Release 1.5.7 2018-03-15 10:20:20 -07:00
Brent Vatne
8288853e3c Update snapshots 2018-03-15 10:20:09 -07:00
Brent Vatne
c4bd2db542 Another fix for frustrating tab bar icon layout issue 2018-03-15 10:19:40 -07:00
Brent Vatne
ee40dd7d24 Release 1.5.6 v1.5.6 2018-03-14 21:50:20 -07:00
Brent Vatne
18a48105c2 Missed a case where we should not have flexGrow 2018-03-14 21:50:06 -07:00
Brent Vatne
fbac47b696 Release 1.5.5 v1.5.5 2018-03-14 21:35:26 -07:00
Brent Vatne
9aab47dac2 Apply horizontal icon style whenever we should use horizontal tabs in icon 2018-03-14 21:35:07 -07:00
Brent Vatne
67309c00a6 Release 1.5.4 v1.5.4 2018-03-14 11:21:15 -07:00
Moti Zilberman
86a724cfe3 Swap addListener out for isFocused prop on ResourceSavingSceneView (#3718)
This is a backport of 81a86fa091 from master.
2018-03-14 11:20:30 -07:00
Brent Vatne
eb78128439 Release 1.5.3 v1.5.3 2018-03-14 11:16:19 -07:00
Brent Vatne
c39ec7a10c Use arrow function instead of bind 2018-03-14 11:16:01 -07:00
Chris
0ff3347e97 Update CardStack.js (#3749)
fix for https://github.com/react-navigation/react-navigation/issues/3729 , https://github.com/react-navigation/react-navigation/issues/3746
2018-03-14 11:08:26 -07:00
Brent Vatne
b9d55a6330 Release 1.5.2 v1.5.2 2018-03-12 11:12:31 -07:00
Brent Vatne
315e43701b Fix tab icon height on horizontal / ipad 2018-03-12 11:12:22 -07:00
Hugo Dozois
1d573bc246 Fix isFocused from withNavigationFocus is a function (#3710)
Fixes #3709
2018-03-11 22:26:33 +01:00
Eric Vicenti
3bfb0b90d0 Fix onTransitionEnd props passthrough
Fixes #3647
2018-03-10 00:09:02 -08:00
Brent Vatne
8a129afe13 Release 1.5.1 v1.5.1 2018-03-09 11:33:06 -08:00
Brent Vatne
ab2a63fe92 Update snapshot for tab icon changes 2018-03-09 11:32:53 -08:00
Brandon Smith
c411210ecc Pass initialRouteKey into StackRouter (#3540) (#3701) 2018-03-09 11:31:41 -08:00
Brent Vatne
01e7296520 Release 1.5.0 v1.5.0 2018-03-07 17:42:38 -08:00
corupta
8f3e0997c5 Add activeLabelStyle and inactiveLabelStyle for DrawerItem (#3559)
* Add activeLabelStyle and inactiveLabelStyle

Adding activeLabelStyle, so that active items can be customized more.
My use case: Change font of the active item to bold.
Also, added inactiveLabelStyle which can be used for a similar purpose.

* prettier fix

* Update react-navigation.js

* prettier fix

* Update jest snapshot for DrawerNavigator - for adding a new style property to the styles array
2018-03-07 17:38:02 -08:00
Nicolas Beck
3f3ef6485c Add initialRouteKey for StackRouter (#3540)
* use initialRouteName as key when initializing StackRouter

* fix null headerLeft

* merge back

* fixed tests

* use config flag

* fixed snapshots

* implemented requested changes
2018-03-07 17:38:02 -08:00
Vishwesh Jainkuniya
b12abb553f Fix: tabBar icons are not visible. (#3650)
* Fix: tabBar icons are not visible.

* Fix: tests.
2018-03-07 17:38:02 -08:00
Ashoat Tevosyan
e02841a979 [Flow] Some updates, mostly from flow-typed (#3682)
1. Remove `NavigationComponent` from `NavigationScreenRouteConfig`. The only context `NavigationScreenRouteConfig` is used in is as an intersection with an object, and as such the only relevant portions of `NavigationScreenRouteConfig` are the object parts.
2. Add static `HEIGHT` variable to `Header` type.
3. In `NavigationContainerProps`, make `onNavigationStateChange` property value nullable.

PS: if in the future you guys would prefer that I separate these sort of PRs into their constituent parts, let me know.
2018-03-07 18:21:15 -05:00
Ben Styles
e147f34555 Allow passing null to onNavigationStateChange prop (#3683)
As seen here: react-navigation/react-navigation#360, we need to be able to pass null to turn off logging.
2018-03-07 18:20:58 -05:00
Sirui Li
81e0ce136e Flow type: SafeAreaView doesn't require children (#3670)
`children` prop should be optional.
2018-03-07 18:20:44 -05:00
Edward Drapkin
8ba727c2cf More specific injected Navigation props (#3645) 2018-03-07 18:19:37 -05:00