-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
75 lines (69 loc) · 2.33 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import { StatusBar } from 'expo-status-bar';
import Orientation from 'react-native-orientation';
import React, { useState, useEffect } from 'react';
import {ImageBackground, StyleSheet, Text, Button, View, SafeAreaView, Image, TouchableOpacity} from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import MapScreen from './screens/MapScreen';
import Menu from './screens/Menu';
import Africa from './screens/Africa';
import Asia from './screens/Asia';
import Australia from './screens/Australia';
import Antarctica from './screens/Antarctica';
import Europe from './screens/Europe';
import SouthAmerica from './screens/SouthAmerica';
import NorthAmerica from './screens/NorthAmerica';
import DnD from './screens/DnD';
import HomeScreen from './screens/Home';
import Flower from './components/Flower.js';
import ColorPalette from './components/ColorPalette';
import ColoringPage from './screens/ColoringPage';
// Test
// const image = {uri: 'https://wallpapercave.com/wp/wp5136232.jpg'}
const Stack = createNativeStackNavigator();
export default function App(){
return (
<NavigationContainer>
<Stack.Navigator initialRouteName='Home' screenOptions={{headerShown: false}}>
<Stack.Screen
name="Home"
component={HomeScreen} />
<Stack.Screen
name="Map"
component={MapScreen} />
<Stack.Screen
name="Menu"
component={Menu} />
<Stack.Screen
name="NorthAmerica"
component={NorthAmerica} />
<Stack.Screen
name="SouthAmerica"
component={SouthAmerica} />
<Stack.Screen
name="Africa"
component={Africa} />
<Stack.Screen
name="Asia"
component={Asia} />
<Stack.Screen
name="Europe"
component={Europe} />
<Stack.Screen
name="Australia"
component={Australia} />
<Stack.Screen
name="Antarctica"
component={Antarctica} />
<Stack.Screen
name="DnD"
component={DnD} />
<Stack.Screen
name="Coloring"
component={ColoringPage} />
</Stack.Navigator>
</NavigationContainer>
)
}
const styles = StyleSheet.create({
});