Commit Graph

2229 Commits

Author SHA1 Message Date
Tim Wang
66087fc7ff Export StackViewTransitionConfigs (#4761)
* export StackViewTransitionConfigs

* Add changelogs
2018-07-26 02:50:07 +08:00
Simone D'Avico
5ea116b163 Fix typo in header transition preset check (uitkit -> uikit) (#4757) 2018-07-25 20:49:24 +02:00
Yevhen
2ebedcfb87 Error when building with haul: ref to pathToRegexp.compile (#4658)
Error in source code that cause problem on react native using haul https://puu.sh/AT1uZ/158623d5a4.png
2018-07-25 21:28:05 +03:00
Brent Vatne
f39b8df3df Release 2.9.1 2018-07-24 10:49:56 -07:00
Brent Vatne
27f3d875be Move more logs behind debug flag in stack playground 2018-07-24 10:47:59 -07:00
Brent Vatne
ff71ee9322 Fix title offfset calculation 2018-07-24 10:47:02 -07:00
Brent Vatne
42b77adc86 Fix snapshots 2018-07-20 14:44:26 -07:00
Brent Vatne
59297bfe0b Release 2.9.0 2018-07-20 14:33:27 -07:00
Brent Vatne
157aae54df Respect custom background color in header wrapper 2018-07-20 14:30:38 -07:00
Brent Vatne
596f2a8df3 Add headerLayoutPreset, add config for back button title visibility and make it have reasonable defaults, better back button ripple on Android (#4588) 2018-07-20 14:12:39 -07:00
Brent Vatne
cc72a1bbc3 Release 2.8.0 2018-07-19 15:48:09 -07:00
Brent Vatne
08c0a38806 Update NavigationPlayground to Expo SDK 28 2018-07-19 15:46:24 -07:00
Brent Vatne
afc00cf810 Cleanup unused descriptors and handle the case where we might expect to have a descriptor but do not (#4723) 2018-07-19 13:16:38 -07:00
Eric Vicenti
984f51dbe2 Fix createNavigator leak of old descriptors 2018-07-19 12:41:14 -07:00
Eric Vicenti
ba1f912907 Fix leak in createNavigator
Previous descriptors had been retained because this binding caused `this.prevState` to remain referenced. This binds the component getter to null instead.
2018-07-19 12:20:56 -07:00
Reza Ghorbani
8ee0e09092 added header container styles to be customized (#4331) 2018-07-19 02:44:08 +04:30
Brent Vatne
050348c0db Release 2.7.0 2018-07-17 15:50:18 -07:00
Brent Vatne
399a64fd17 Add border for transparent header in example 2018-07-17 15:43:22 -07:00
Eric Vicenti
a443464e5b Improve empty path and param handling (#4671)
* Overhaul Path handling

* Another test for deep link
2018-07-17 13:51:20 -07:00
Brent Vatne
35ddee8c50 Fix tests 2018-07-17 13:49:12 -07:00
Brent Vatne
abe244468e Remove unnecessary style array 2018-07-16 18:09:59 -07:00
Brent Vatne
592c19aa59 Fix edge case where route was in nav state but never actually graduated to scene 2018-07-16 18:09:49 -07:00
Kenza Iraki
80257b2b0c Set borderBottom to transparent and of size 0 if headerTransparent is true (#4701) 2018-07-16 19:32:14 -04:00
Brent Vatne
92d1c908ea Fix onTransitionStart config not being invoked with keyboard aware navigator, and use prop over config when available 2018-07-16 15:13:25 -07:00
Brent Vatne
84e0dd930d Pull onTransitionStart from navigationConfig, fixes #4100 2018-07-16 14:55:34 -07:00
Matteo Codogno
fc50e4a600 Fix #4608 - remove header left component only when a headerLeft optio… (#4679)
* Fix #4608 - remove header left component only when a headerLeft option is not specified

* Update CHANGELOG.md
2018-07-12 20:42:56 +02:00
Eric Vicenti
3876521eca Fix container referene to startup state data 2018-07-12 11:01:11 -07:00
Michael Lefkowitz
70886f227d Feat/allow keyless replace (#4636)
* allow key to be undefined on StackNavigation.replace method

* added tests for replace action w/out key

* fix typo

* updated changelog

* updated teests for clarity

* added length check on routes to safely fallthrough to search
2018-07-11 01:41:42 -05:00
Eric Vicenti
41c9424f67 Add enableURLHandling to navigation container 2018-07-10 14:47:57 -07:00
Ashoat Tevosyan
a3264ee34f [flow] Make NavigationRoute types exact (#4667)
React Native 0.56 introduces Flow 0.75, which makes it impossible to refine `NavigationRoute` based on the presence of `index` or `routes` properties.

This PR turns `NavigationStateRoute` and `NavigationLeafRoute` into exact types, which addresses this issue.
2018-07-10 16:59:09 -04:00
Dariusz Łuksza
5f0ffedc38 Fix changelog (#4651)
Fixes 2.6.1 header link
2018-07-07 05:21:00 +02:00
Brent Vatne
0b00d07a29 Release 2.6.2 2018-07-06 10:44:30 -07:00
Brent Vatne
28c5066fbe Temporarily remove warnings on vertical padding in header 2018-07-06 10:42:32 -07:00
Brent Vatne
173758d9c9 Default to 0 elevation on transparent header 2018-07-05 15:17:08 -07:00
Brent Vatne
2741259c9a Fix 2.6.1 changelog 2018-07-05 15:07:17 -07:00
Brent Vatne
9dbfeca1a2 Release 2.6.1 2018-07-05 15:03:14 -07:00
Brent Vatne
5c209bc8bc Warn for more invalid header styles 2018-07-05 15:02:48 -07:00
Brent Vatne
afdd6fbe25 Fix regression for shadow in header on Android 2018-07-05 14:53:41 -07:00
Brent Vatne
8c19af0367 Release 2.6.0 2018-07-04 13:04:00 -07:00
liuqiang1357
180f5ab509 Fix bug: params not be passed to navigator inside SwitchNavigator (#4306) 2018-07-05 03:28:01 +08:00
Eric Vicenti
ce0a602dd8 Fix stack router child router delegation priority (#4635)
Stack router had some aggressive logic for deferring to inactive child routers. The child router behavior should come after all of the appropriate stack actions, with the exception of the active child router.

This was causing issues such as https://github.com/react-navigation/react-navigation/issues/4623 , where inactive tab navigators would handle the back action, and cause the stack to attempt to  pop back to it.
2018-07-03 21:18:25 -07:00
Eric Vicenti
04f8fd47f3 Avoid crash when calling isFocused on old route (#4634) 2018-07-03 12:03:54 -07:00
Sébastien Lorber
f9d3e78879 Add <NavigationEvents/> component (#4188)
* add NavigationEvents

* expose TabsWithNavigationEvents in lib entrypoints

* Add NavigationEvents example in playground

* Add NavigationEvents example in playground

* Add NavigationEvents tests

* Add NavigationEvents Flow declarations

* remove useless NavigationEvents constructor

* NavigationEvents => make tests more readable by avoiding beforeEach callback

* fix flow test error by adding <any, any> to React.Component
2018-06-29 16:34:11 +02:00
Eric Vicenti
273392733f Routers: Deep Linking Overhaul (#4590)
* deep linking overhaul

* clean up PlatformHelpers

this had previously been required for old versions of react native and react-native-web
2018-06-29 07:27:12 -07:00
Eric Vicenti
1159573e83 clean up PlatformHelpers (#4586)
this had previously been required for old versions of react native and react-native-web
2018-06-28 10:02:52 -07:00
Brent Vatne
27183f4a50 Release 2.5.5 2018-06-27 18:12:59 -07:00
Brent Vatne
0cc05b9ff1 Delegate to child routers for more than just the top screen in the stack (#4587)
* Delegate to child routers for more than just the top screen in the stack. Fixes #4185

* Add CHANGELOG entry
2018-06-27 17:37:30 -07:00
Brent Vatne
97c305444c Throw error in development mode when title is not a string 2018-06-27 17:35:29 -07:00
Brent Vatne
4540e5b65d Update react-navigation-drawer to 0.4.3 2018-06-27 17:27:58 -07:00
Brent Vatne
55887b6c37 Throw an error when header is invalid 2018-06-27 17:22:00 -07:00