react-navigation/examples/NavigationPlayground
Adam Miskiewicz 0890896824 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 17:03:25 +03:00
..
2018-03-22 22:42:37 -04:00
2018-03-13 13:14:02 -07:00

Navigation Playground Example

A playground for experimenting with react-navigation in a pure-JS React Native app.

Usage

Please see the Contributors Guide for instructions on running these example apps.

You can view this example application directly on your phone by visiting our expo demo.