diff --git a/example/App.js b/example/App.js index 8683f8b..da50c7a 100644 --- a/example/App.js +++ b/example/App.js @@ -7,6 +7,7 @@ import { ListSection, Divider } from 'react-native-paper'; import SimpleStack from './src/SimpleStack'; import TransparentStack from './src/TransparentStack'; +import ModalStack from './src/ModalStack'; // Comment the following two lines to stop using react-native-screens import { useScreens } from 'react-native-screens'; @@ -14,6 +15,7 @@ useScreens(); const data = [ { component: SimpleStack, title: 'Simple', routeName: 'SimpleStack' }, + { component: ModalStack, title: 'Modal', routeName: 'ModalStack' }, { component: TransparentStack, title: 'Transparent', @@ -42,6 +44,7 @@ class Home extends React.Component { renderItem={this._renderItem} keyExtractor={this._keyExtractor} data={data} + style={{ backgroundColor: '#fff' }} /> ); } diff --git a/example/src/ModalStack.js b/example/src/ModalStack.js new file mode 100644 index 0000000..a8adf27 --- /dev/null +++ b/example/src/ModalStack.js @@ -0,0 +1,59 @@ +import React from 'react'; +import { Button, View, Text } from 'react-native'; +import { createStackNavigator } from 'react-navigation-stack'; + +class ListScreen extends React.Component { + render() { + return ( + + List Screen + A list may go here +