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
Brent Vatne
96564f4eb6
Release 2.4.0
2018-06-20 13:38:05 -07:00
Brent Vatne
b25d36827c
Fix withDefaultValue
2018-06-20 13:37:33 -07:00
Christophe Hurpeau
6cba8d7dca
createNavigationContainer: rethrow the error instead of creating a new one ( #4533 )
...
Creating a new error makes the stack unreadable in sentry, because the stack is stringified when the error is cast to string to create a new one.
Is there another reason to do that ?
Alternative possible solution would be to add a method to be able to handle the error ourselves ?
2018-06-20 22:03:02 +02:00
Eric Vicenti
5990ec36e5
Fix isTransitioning on nested navigate ( #4520 )
...
This bug wasnt apparent until we fixed the transitioner to fully respect isTransitioning. The router did not handle this properly until now.
Enhanced a test to verify this in the future
2018-06-20 12:17:14 -07:00
Vladislav Shabanov
331b6a4a1a
Make headers of non-standard heights work correctly in StackNavigator when header is null ( Fixes #4208 ) ( #4353 )
...
* Measure header height dynamically
* Add comment
* StacksOverTopTabs playground example
2018-06-15 22:10:43 +07:00
Ashoat Tevosyan
340a78e7ee
Revert "Export getNavigationActionCreators ( #4258 )" ( #4495 )
...
This reverts commit 1e7d8d55c3 .
2018-06-15 02:34:38 +08:00
Ashoat Tevosyan
ca1118e21e
[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-15 02:33:50 +08:00
Ashoat Tevosyan
d3b8b42477
[ReduxExample] Update to use react-navigation-redux-helpers@2.0.0 ( #4504 )
2018-06-15 02:15:11 +08:00
Brent Vatne
0118938500
Fix incorrect methods being called in createKeyboardAwareNavigator
2018-06-13 14:49:34 -07:00
Eric Vicenti
49828a34dc
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
517a23f8fb
Release 2.3.1
2018-06-12 11:32:08 -07:00
Eric Vicenti
cac810c1e9
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
b34e5f206e
Release 2.3.0
2018-06-11 15:54:41 -07:00
k-murakami0609
ab5219a852
fix broken link to Common mistakes ( #4468 )
2018-06-11 02:41:18 +09:00
Brent Vatne
42e9adb569
Release 2.3.0-beta.1
2018-06-09 14:18:09 -07:00
Brent Vatne
2056bd16d6
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
c420813545
Fix ScenesReducer test
2018-06-08 17:44:32 -07:00
Brent Vatne
df2ef55122
Release 2.3.0-beta.0
2018-06-08 17:36:42 -07:00
Brent Vatne
7a058892e0
Update header when screenProps change ( Fixes #4271 )
2018-06-08 17:35:17 -07:00
Brent Vatne
152ccbfaf2
Bump react-navigation-drawer. Fixes #4416
2018-06-08 16:27:36 -07:00
Brent Vatne
5531698c97
Fix withNavigation in non-floating headers
2018-06-08 15:48:21 -07:00
Brent Vatne
3d4960e1ed
Return result of dispatch from action helpers
2018-06-08 14:33:01 -07:00
Eric Vicenti
af90697ef1
Refactor redo, child navigation to navigation prop ( #4453 )
2018-06-08 14:20:07 -07:00
Brent Vatne
ac53028af6
Release 2.2.5
2018-06-08 09:40:39 -07:00
ensecoz
853092b70d
extract correct property for onTransitionEnd ( #4459 )
2018-06-08 23:35:36 +07:00
Tom Klaver
74669c76b5
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 18:31:05 +02:00
Arthur Levoyer
67a4115df4
Add missing tests about DeepLinking ( #4451 )
...
* Fix #1950 (Deep link not working when nesting have more than two levels.)
* Fix test
2018-06-07 20:37:57 +02:00
Brent Vatne
2da3c276ec
Release 2.2.4
2018-06-07 11:33:14 -07:00
Brent Vatne
885762720d
Re-compute options when screenProps change
2018-06-07 11:31:31 -07:00
Brent Vatne
c5f7ba75f7
Release 2.2.3
2018-06-06 21:13:00 -07:00
Brent Vatne
7d2f740c0f
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
518fc0df5c
Return the result of dispatch from helpers. Fixes #4445
2018-06-06 21:01:51 -07:00
Brent Vatne
be9dd85b1b
Release 2.2.2
2018-06-06 14:34:59 -07:00
Brent Vatne
a5703d30fd
Bump react-navigation-drawer
2018-06-06 14:34:42 -07:00
Brent Vatne
9d23f18b76
Release 2.2.1
2018-06-06 13:24:50 -07:00
Brent Vatne
abd66fa0e0
Bump react-navigation-tabs and rebuild yarn.lock
2018-06-06 13:24:29 -07:00
Brent Vatne
52fe023ee2
Revert "Refactor, move child navigation to navigation prop ( #4425 )"
...
This reverts commit ba62509ff4 .
2018-06-06 13:19:08 -07:00
陈然
9910c74ac5
Change 'React' import writing, Prevent warnings in old version React ( #4428 )
2018-06-07 03:51:09 +08:00
Eric Vicenti
2935d61412
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
7147e83e2e
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
2b9bb75025
Release 2.2.0
2018-06-05 12:21:09 -07:00
Brent Vatne
43414e4fd5
Bump react-navigation-tabs to latest
2018-06-05 12:20:47 -07:00