Commit Graph

2256 Commits

Author SHA1 Message Date
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
Brent Vatne
b6c49d573b Release 2.5.4 2018-06-27 15:24:34 -07:00
Julian Paas
28570cc51e Adds getNavigation to web exports (#4551) 2018-06-27 16:34:45 -04:00
Brent Vatne
e84ead1922 Prevent flicker in header when header is null on initial mount (when using default header sizes) (#4577)
* Prevent flicker in header in most common cases. Fixes https://github.com/react-navigation/react-navigation/issues/4264

* Update snapshots
2018-06-26 13:27:43 -07:00
Julian Paas
5d5931e77d Adds SwitchNavigator to react-navigation-web (#4550)
* Adds SwitchNavigator to react-navigation-web
2018-06-26 14:24:23 -04:00
Vojtech Novak
72720dd558 Update ISSUE_TEMPLATE.md (#4575) 2018-06-26 00:41:56 +02:00
Brent Vatne
7964b11e36 Release 2.5.3 2018-06-25 14:36:50 -07:00
Brent Vatne
e8550ffc3c Hoist navigation action creators for router above those for child router 2018-06-25 14:33:01 -07:00
Brent Vatne
b0465862a0 Update changelog 2018-06-23 11:03:38 -07:00
Brent Vatne
1a53b5ffd4 Release 2.5.2 2018-06-23 11:02:14 -07:00
Brent Vatne
51732fcb5a Update react-navigation-drawer to 0.4.2 to fix toggle regression 2018-06-23 11:01:47 -07:00
Brent Vatne
e47efb8750 Release 2.5.1 2018-06-22 13:21:22 -07:00
Brent Vatne
a39147a579 Fix name of prop, should be lastTransitionProps instead of prevTransitionProps in StackViewLayout - Fixes #4542 2018-06-22 13:18:26 -07:00
Brent Vatne
a2dc2e6274 Update example app.json 2018-06-22 12:50:35 -07:00
Rodrigo Bermúdez Schettino
4080732390 Improve changelog format (#4559)
Bug fixes should be listed in the "Fixed" section instead of "Changed" according to keepachangelog.
2018-06-22 19:41:58 +02:00
Brent Vatne
2520019e97 Release 2.5.0 2018-06-22 10:32:11 -07:00
Eric Vicenti
39ba4767df @ericvicenti/universe (#4493)
* Isolate modules for uncontainerized navigators

* Clean up prop-types

* Fix warnings and web import friendlyness

* strip a flow

* Standalone provider/consumer navigation context

* export shallowEqual as module

* address various lint

# Conflicts:
#	src/navigators/createStackNavigator.js

* Get tests to pass
2018-06-22 10:20:27 -07:00
Rodrigo Bermúdez Schettino
280fc39d3e Fix typo in Pull Request Template (#4558)
Also link to the "Unreleased" section in CHANGELOG.
2018-06-22 19:19:41 +02:00
Brent Vatne
46b1ca197d Update PR template for changelog 2018-06-22 08:25:38 -07:00
Rodrigo Bermúdez Schettino
01d39d5ff5 Create CHANGELOG.md (#4544)
List all changes between versions to notify about notable changes in releases.
2018-06-22 17:22:15 +02:00
Brent Vatne
4bb9b1db88 Fixes #4491 2018-06-21 15:24:52 -07:00
Brent Vatne
a72afa46b2 Release 2.4.1 2018-06-20 15:35:07 -07:00
Brent Vatne
cad22c18c3 Improve playground on Android 2018-06-20 14:20:00 -07:00
Brent Vatne
1f71df42c6 Improve example 2018-06-20 13:51:34 -07:00