-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
23 lines (20 loc) · 847 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { Button, View, Text } from 'react-native';
import { StyleSheet } from 'react-native';
import { useDimensions, useDeviceOrientation } from '@react-native-community/hooks';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import WelcomeScreen from './app/screens/WelcomeScreen';
import PlantScreen from './app/screens/PlantScreen';
const Stack = createStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator headerMode="WelcomeScreen">
<Stack.Screen name="WelcomeScreen" component={WelcomeScreen}/>
<Stack.Screen name="PlantScreen" component={PlantScreen}/>
</Stack.Navigator>
</NavigationContainer>
);
}