Use react-native-screens in example

This commit is contained in:
Brent Vatne 2018-09-14 12:48:59 +02:00
parent 2cdbb8c264
commit 2a686f3bc7
4 changed files with 636 additions and 507 deletions

View File

@ -4,8 +4,13 @@ import { FlatList } from 'react-native';
import { createSwitchNavigator } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import { ListSection, Divider } from 'react-native-paper';
import SimpleStack from './src/SimpleStack';
// Comment the following two lines to stop using react-native-screens
import { useScreens } from 'react-native-screens';
useScreens();
const data = [
{ component: SimpleStack, title: 'Simple', routeName: 'SimpleStack' },
];

View File

@ -3,7 +3,7 @@
"name": "React Navigation Stack Example",
"description": "Demonstrates the various capabilities of react-navigation-stack",
"slug": "react-navigation-stack-demo",
"sdkVersion": "29.0.0",
"sdkVersion": "30.0.0",
"version": "1.0.0",
"primaryColor": "#2196f3",
"packagerOpts": {

View File

@ -9,7 +9,7 @@
"postinstall": "rm -rf node_modules/expo-react-native-adapter/node_modules/react && rm -rf node_modules/expo-gl/node_modules/react"
},
"dependencies": {
"expo": "~29.0.0",
"expo": "~30.0.0",
"hoist-non-react-statics": "^2.5.0",
"prop-types": "^15.6.0",
"react": "16.3.1",

File diff suppressed because it is too large Load Diff