-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
92 lines (79 loc) · 2.27 KB
/
Copy pathApp.js
File metadata and controls
92 lines (79 loc) · 2.27 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import { StatusBar } from 'expo-status-bar';
import { useState, useEffect } from 'react';
import 'react-native-gesture-handler';
import React,{ Component } from 'react';
import {
SafeAreaView,
StyleSheet,
Text,
View
} from 'react-native';
import AppLoading from 'expo-app-loading';
// import { useFonts, DotGothic16_400Regular } from '@expo-google-fonts/dotgothic16';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import TitleScreen from './TitleScreen';
// import NejikiScreen from './KatoNejikiScreen';
import ChampionshipScreen from './KirinukiChampionshipScreen';
import FesScreen from './KatoFesScreen';
import KatomonGenerateScreen from './KatomonGenerateScreen';
import CreditScreen from './CreditScreen';
import { Audio } from 'expo-av';
import Sounds from './assets/Sounds';
const Stack = createStackNavigator();
function App(){
// let [fontsLoaded] = useFonts({
// DotGothic16_400Regular,
// });
// let fontSize = 24;
// let paddingVertical = 6;
// if (!fontsLoaded) {
// return <AppLoading />;
// } else {
return (
<NavigationContainer>
<Stack.Navigator>
{/* 上の画面がトップとして表示される */}
<Stack.Screen
name="ホーム"
component={TitleScreen}
/>
{/* <Stack.Screen
name="フリー対戦"
component={NejikiScreen}
/> */}
<Stack.Screen
name="カトフェス"
component={FesScreen}
/>
<Stack.Screen
name="切り抜きチャンピオンシップ"
component={ChampionshipScreen}
/>
<Stack.Screen
name="カトモン生成"
component={KatomonGenerateScreen}
/>
<Stack.Screen
name="クレジット"
component={CreditScreen}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
// CSS的なもの
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
hello: {
fontSize: 24,
fontWeight: 'bold',
fontFamily: 'DotGothic16_400Regular',
},
});
export default App;