Ashoat Tevosyan
c8e5673183
[flow] Type getNavigation ( #4505 )
...
Unrelated change in here: typing `tabBarOnPress`'s `defaultHandler`. Wasn't sure if I should make a separate PR for a single unrelated line, let me know if you'd prefer that going forward.
2018-06-14 11:33:50 -07:00
Ashoat Tevosyan
b312a5e307
[ReduxExample] Update to use react-navigation-redux-helpers@2.0.0 ( #4504 )
2018-06-14 11:15:11 -07:00
Brent Vatne
ee6a6c53b1
Fix incorrect methods being called in createKeyboardAwareNavigator
2018-06-13 14:50:03 -07:00
Eric Vicenti
8edec88341
Export getNavigation as public API, test redux ( #4489 )
...
This unblocks the fixing of react-navigation-redux-helpers to unbreak redux support in 2.3
https://github.com/react-navigation/react-navigation-redux-helpers/pull/37
All redux users will need to change their code to reflect the changes made here to `ReduxExample/AppNavigator`
2018-06-12 11:59:09 -07:00
Brent Vatne
b8d6d4253d
Release 2.3.1
2018-06-12 11:32:08 -07:00
Eric Vicenti
0adb1ba9f1
Export getNavigation as public API, test redux ( #4488 )
...
This unblocks the fixing of react-navigation-redux-helpers to unbreak redux support in 2.3
https://github.com/react-navigation/react-navigation-redux-helpers/pull/37
All redux users will need to change their code to reflect the changes made here to `ReduxExample/AppNavigator`
2018-06-12 11:30:23 -07:00
Brent Vatne
d3ef3d1271
Release 2.3.0
2.3.0
2018-06-11 15:54:41 -07:00
k-murakami0609
89a24bdc12
fix broken link to Common mistakes ( #4468 )
2018-06-10 10:41:18 -07:00
Brent Vatne
128a95b496
Release 2.3.0-beta.1
2.3.0-beta.1
2018-06-09 14:18:09 -07:00
Brent Vatne
470eaf3b08
Make the actions available on the navigator navigation prop the same as its children ( #4467 )
...
* Make the actions available on the navigator navigation prop the same as its children
* Fix test and improve code clarity
2018-06-09 14:13:21 -07:00
Brent Vatne
c91e8206a5
Fix ScenesReducer test
2018-06-08 17:44:32 -07:00
Brent Vatne
da283915f8
Release 2.3.0-beta.0
2.3.0-beta.0
2018-06-08 17:36:42 -07:00
Brent Vatne
3031e7bd80
Update header when screenProps change ( Fixes #4271 )
2018-06-08 17:35:17 -07:00
Brent Vatne
98a4f26f26
Bump react-navigation-drawer. Fixes #4416
2018-06-08 16:27:36 -07:00
Brent Vatne
b7f5435c93
Fix withNavigation in non-floating headers
2018-06-08 15:48:21 -07:00
Brent Vatne
21ef4fcb82
Return result of dispatch from action helpers
2018-06-08 14:33:01 -07:00
Eric Vicenti
5f64a2a9cb
Refactor redo, child navigation to navigation prop ( #4453 )
2018-06-08 14:20:07 -07:00
Brent Vatne
992d0fb267
Release 2.2.5
2.2.5
2018-06-08 09:40:39 -07:00
ensecoz
6f41379ed1
extract correct property for onTransitionEnd ( #4459 )
2018-06-08 09:35:36 -07:00
Tom Klaver
267af01e72
throw readable error when wrong navigation prop is passed ( #4455 )
...
* add warning when passing wrong navigation prop: https://github.com/react-navigation/react-navigation/issues/3598
* add test for throwing when passing wrong navigation prop
* wrong nav prop error: update snapshots, throw => throw new, update docs reference url
2018-06-08 09:31:05 -07:00
Arthur Levoyer
b68c3a755d
Add missing tests about DeepLinking ( #4451 )
...
* Fix #1950 (Deep link not working when nesting have more than two levels.)
* Fix test
2018-06-07 11:37:57 -07:00
Brent Vatne
7345634493
Release 2.2.4
2.2.4
2018-06-07 11:33:14 -07:00
Brent Vatne
6517169119
Re-compute options when screenProps change
2018-06-07 11:31:31 -07:00
Brent Vatne
ea5d14a720
Release 2.2.3
2.2.3
2018-06-06 21:13:00 -07:00
Brent Vatne
313d0726a8
Add some logs to NavigationPlayground around helper dispatch return value
...
This is a poor substitute for tests
2018-06-06 21:12:18 -07:00
Brent Vatne
b52f153747
Return the result of dispatch from helpers. Fixes #4445
2018-06-06 21:01:51 -07:00
Brent Vatne
44621005ff
Release 2.2.2
2.2.2
2018-06-06 14:34:59 -07:00
Brent Vatne
bf58364c3d
Bump react-navigation-drawer
2018-06-06 14:34:42 -07:00
Brent Vatne
b55053cde6
Release 2.2.1
2.2.1
2018-06-06 13:24:50 -07:00
Brent Vatne
9abb2644a9
Bump react-navigation-tabs and rebuild yarn.lock
2018-06-06 13:24:29 -07:00
Brent Vatne
6a946d6ab7
Revert "Refactor, move child navigation to navigation prop ( #4425 )"
...
This reverts commit ba62509ff44236efe026040479b28c4c52205332.
2018-06-06 13:19:08 -07:00
陈然
395abe5200
Change 'React' import writing, Prevent warnings in old version React ( #4428 )
2018-06-06 12:51:09 -07:00
Eric Vicenti
ba62509ff4
Refactor, move child navigation to navigation prop ( #4425 )
...
* Refactor, move child navigation to navigation prop
This fixes our descriptor caching issue, and unblocks explicit nested navigation options.
As a side effect, the following APIs are introduced:
- navigation.getChildNavigation(routeKey) , which is useful for explicitly getting children config info
- navigation.router, access to the static router
- router.childRouters[routeName] , an optional way to access the children routers directly. If childRouters are not provided in a router, we will fall back on getComponentForRouteName(routeName).router, which is the previous external API for this (although it may be slower because it will require the whole screen component).
* supporting tests and top level actions
* cleanup
2018-06-06 12:50:30 -07:00
Brent Vatne
45391db7d9
Move all drawer code into react-navigation-drawer ( #4435 )
...
* Move all drawer code into react-navigation-drawer
* Remove react-native-drawer-layout-polyfill from package.json
2018-06-06 12:11:28 -07:00
Brent Vatne
7f86362e86
Release 2.2.0
2.2.0
2018-06-05 12:21:09 -07:00
Brent Vatne
99605737e9
Bump react-navigation-tabs to latest
2018-06-05 12:20:47 -07:00
Serge Lebedev
842f5eb7b2
[flow] Fix NavigationScreenComponent's navigationOptions ( #4317 )
2018-06-05 12:19:12 -07:00
Richárd Biró
183ea82416
Pass getCustomActionCreators to Drawer route ( #4433 )
2018-06-05 11:12:03 -07:00
Rodrigo Bermúdez Schettino
108a6504a7
Use consistent naming in README ( #4427 )
...
Use the same casing (camel case) as in the README's title for the License section.
2018-06-05 10:55:20 -07:00
Eric Vicenti
f92d671746
Fix getCustomActionCreators in drawer navigator
2018-06-05 10:51:05 -07:00
Brent Vatne
e0c4a8f7d3
Release 2.1.0
2.1.0
2018-06-04 14:04:00 -07:00
Rodrigo Bermúdez Schettino
bc881c8aa1
Update deprecated StackNavigator usage ( #4389 )
...
Use createStackNavigator instead.
2018-06-04 13:59:55 -07:00
Ashoat Tevosyan
118c19dcce
[flow] Update NavigationActions and introduce StackActions and DrawerActions ( #4345 )
2018-06-04 13:58:14 -07:00
James Bechet
01b43974e6
fix swipe to go back by providing the index ( #4409 )
2018-06-04 13:55:26 -07:00
Brent Vatne
2f90899620
Cache descriptors in createNavigator ( #4424 )
2018-06-04 13:54:09 -07:00
Eric Vicenti
6cc86f66e1
Fix stack router state change without isTransitioning change ( #4368 )
2018-06-04 12:47:40 -07:00
Eric Vicenti
4be99b6645
Transitioner: Fix instantaneous transitions ( #4404 )
...
* Transitioner: Fix instantaneous transitions
The transitioner will always perform an animation on state change. Instead we should check if the navigation state is requesting a transition with isTransitioning. If not, we follow a similar codepath to transitioning, without any animation.
* Update .eslintrc
2018-06-04 12:46:08 -07:00
Eric Vicenti
80016b7218
Fix race condition in DrawerView ( #4392 )
2018-06-03 13:35:55 -07:00
Eric Vicenti
f555a9ec9a
Fix drawer router logic to close drawer ( #4394 )
2018-06-03 13:35:30 -07:00
Brent Vatne
05cbd85d5c
Temporarily stop running flow on navigation playground due to internal react-native flow errors
2018-06-01 15:02:12 -07:00