Commit Graph

797 Commits

Author SHA1 Message Date
Eric Vicenti
8be950a18b Fix initial action dispatch for nonPersisted apps (#4104) 2018-05-02 09:17:00 -07:00
Brent Vatne
bc166fb6a7 Release 2.0.0-rc.7 2018-04-30 17:08:11 -07:00
Eric Vicenti
088791d455 Add tests to confirm setParam behavior (#4099)
Adding these tests because reports from this issue make me nervous:

https://github.com/react-navigation/react-navigation/issues/1274
2018-04-30 16:37:41 -07:00
Brent Vatne
bd908bffeb Release 2.0.0-rc.6 2018-04-30 16:19:28 -07:00
Brent Vatne
e6bda58d57 Container state can be out of date if we have async functions between getting it and using it (#4098) 2018-04-30 15:59:49 -07:00
Rob Allsopp
8828f438ce go back to React$, and fix real error (#4095) 2018-04-30 13:04:48 -06:00
Rob Allsopp
ce21d7db38 Fix missing/incorrect flow types (#4085)
* don’t use private global

* add missing method ‘getParam’ to navigation screen prop

* correct return type for ‘withNavigation’

* add usage of `getParam` method
2018-04-27 15:30:23 -06:00
Jed Mao
660cf973bb Fix "npm test" on Windows 10 (#4066)
* Fix Windows

* update prettier

* Explain need for assetsTransformer in comment
2018-04-27 10:57:07 -05:00
Brent Vatne
33fa12ee89 Release 2.0.0-rc.5 2018-04-25 17:49:17 -07:00
Brent Vatne
55d41c3702 Give inactive routes in stack opportunity to handle action (#4064) 2018-04-26 00:48:55 +00:00
Brent Vatne
1657b8536e Release 2.0.0-rc.4 2018-04-25 17:03:56 -07:00
Brent Vatne
4537e5782c Bump react-navigation-deprecated-tab-navigator 2018-04-25 16:57:42 -07:00
Brent Vatne
c833b33354 Bump react-navigation-tabs 2018-04-25 16:49:57 -07:00
Rich Gilbank
1d92022802 Typo in deprecation notice (#4051) 2018-04-24 14:10:48 -04:00
Brent Vatne
0ad061c59e Release 2.0.0-rc.3 2018-04-20 17:40:02 +03:00
Adam Miskiewicz
d368ddac41 Make StackNavigator keyboard aware (#3951)
* Make StackNavigator keyboard aware

One thing that has always annoyed me in React Navigation is the handling of the keyboard. When a keyboard is visible on screen and a navigation action occurs (either by tapping a button or using a gesture), the keyboard tends to stay on screen until the transition completes. This feels janky and broken. On native iOS, for instance, the keyboard hides immediately when the navigation starts, and if the transition is cancelled (say, when the user releases the gesture), the keyboard reappears.

This PR introduces a "KeyboardAwareNavigator" higher order component that is enabled on the StackNavigator, unless a `disableKeyboardHandling` prop is passed into the StackNavigator's configuration.

* Set status bar in keyboard handling example

* Call gesture props in keyboard aware navigator if available

* Fix formatting
2018-04-20 07:03:25 -07:00
Serhii Palash
fc7ac254e9 Fix TabNavigator export ( Issue #3962 ) (#3979) 2018-04-20 16:40:18 +03:00
Brent Vatne
52d9e014bc Fix _isRouteFocused so it takes a route and returns bool rather than fn 2018-04-20 16:39:03 +03:00
Janic Duplessis
9d76dc6364 Fix header hardcoded height to accound for iPhone X and orientation changes (#4017) 2018-04-20 09:34:33 -04:00
Eric Vicenti
78684488fa Fix header ModularLeftComponent to goBack from child navigation (#4023) 2018-04-20 06:33:36 -07:00
Brent Vatne
a7b190a4f6 Release 2.0.0-rc.2 2018-04-09 17:26:32 -07:00
Yao Hui Chua
6528ca0f31 Shift tests to isolate routers (#3876) 2018-04-10 04:00:01 +08:00
Janic Duplessis
79359b32c2 Fix transition between 2 screens with no header (#3939) 2018-04-09 15:32:27 -04:00
Janic Duplessis
785af36335 Use Header.HEIGHT instead of measuring to avoid flicker (#3940) 2018-04-09 15:31:43 -04:00
Janic Duplessis
cc4d75f1a8 Fix header transition when mode is set to screen (#3927) 2018-04-09 14:22:51 -04:00
Brent Vatne
0191edf83a Release 2.0.0-rc.1 2018-04-06 15:14:32 -07:00
Eric Vicenti
d4e9aa32db drawer router key (#3925) 2018-04-06 15:13:55 -07:00
emision
3a89f44318 add isFocused helper definition (#3912) 2018-04-06 22:43:51 +03:00
Brent Vatne
14408b5a11 Fix typo in SwitchRouter 2018-04-06 12:42:42 -07:00
Brent Vatne
a9e4146c50 Fix stackConfig typo 2018-04-06 12:39:44 -07:00
Eric Vicenti
daad6d4d53 custom action creators api (#3923) 2018-04-06 12:12:39 -07:00
Brent Vatne
2b5ec70055 Release 2.0.0-beta.10 2018-04-05 14:46:33 -07:00
Brent Vatne
ac735f6d7d Prevent double application of navigationOptions function when using RouteName: ScreenName route config 2018-04-05 14:45:41 -07:00
Brent Vatne
3ca8f6ff97 Release 2.0.0-beta.9 2018-04-05 12:09:55 -07:00
Eric Vicenti
122fd7f08a Immediate transition fix, avoid stale render (#3901) 2018-04-05 11:35:16 -07:00
Eric Vicenti
4b4709d925 container initialization fix (#3899) 2018-04-05 11:29:59 -07:00
Eric Vicenti
ef0ab25cf4 fix header back (#3900) 2018-04-05 11:29:15 -07:00
Eric Vicenti
e2a239bf80 avoid unnecessary navigation completion dispatches (#3902) 2018-04-05 11:27:32 -07:00
Eric Vicenti
b29b46fe8a no more component will mount (#3903) 2018-04-05 11:25:26 -07:00
Eric Vicenti
7919b33faa Enhance replace action creator (#3906) 2018-04-05 11:25:04 -07:00
Brent Vatne
068fcf8b2d Release 2.0.0-beta.8 2018-04-04 19:34:09 -07:00
Brent Vatne
4ea9963052 Bump react-navigation-tabs dependency 2018-04-04 19:33:51 -07:00
Brent Vatne
67d6f8837f Update NavigationPlayground dependencies 2018-04-04 19:33:01 -07:00
Brent Vatne
e469f16564 Release 2.0.0-beta.7 2018-04-04 18:37:41 -07:00
Brent Vatne
2a04e1ba6a Fix isFocused and example 2018-04-04 18:37:08 -07:00
Brent Vatne
0e46af0a0f Update react-navigation-tabs 2018-04-04 18:17:57 -07:00
Gaëtan Renaudeau
175a246543 Update Flowtype to support navigation.navigate({}) (#3843) 2018-03-26 23:17:36 +02:00
Brent Vatne
d57fb6e6e0 Fix refactoring errors 2018-03-25 19:04:15 -07:00
Eric Vicenti
b74178d447 Actions creators overhaul (#3619) 2018-03-25 21:31:59 -04:00
Brent Vatne
3a7eec3315 Release 2.0.0-beta.6 2018-03-25 12:33:30 -07:00