diff --git a/packages/stack/example/App.js b/packages/stack/example/App.js index 259a2205..018cb1c9 100644 --- a/packages/stack/example/App.js +++ b/packages/stack/example/App.js @@ -23,6 +23,7 @@ import LifecycleInteraction from './src/LifecycleInteraction'; import GestureInteraction from './src/GestureInteraction'; import SwitchWithStacks from './src/SwitchWithStacks'; import StackWithDrawer from './src/StackWithDrawer'; +import StackWithInput from './src/StackWithInput'; import HeaderPreset from './src/HeaderPreset'; import { HeaderBackgroundDefault, @@ -75,6 +76,11 @@ const data = [ title: 'Stack with drawer inside', routeName: 'StackWithDrawer', }, + { + component: StackWithInput, + title: 'Stack with text input', + routeName: 'StackWithInput', + }, { component: HeaderBackgroundDefault, title: 'Header background (UIKit transition)', diff --git a/packages/stack/example/src/StackWithInput.js b/packages/stack/example/src/StackWithInput.js new file mode 100644 index 00000000..344ecf26 --- /dev/null +++ b/packages/stack/example/src/StackWithInput.js @@ -0,0 +1,58 @@ +import * as React from 'react'; +import { Button, TextInput, View } from 'react-native'; +import { + createStackNavigator, + TransitionPresets, +} from 'react-navigation-stack'; + +class Input extends React.Component { + static navigationOptions = { + title: 'Input screen', + }; + + render() { + return ( + + ); + } +} + +class Home extends React.Component { + static navigationOptions = { + title: 'Home', + }; + + render() { + return ( + +