-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.jsx
61 lines (55 loc) · 2.03 KB
/
App.jsx
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
// import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator, CardStyleInterpolators } from '@react-navigation/stack';
import firebase from 'firebase';
import LogInScreen from './src/screens/LogInScreen';
import MemoCreateScreen from './src/screens/MemoCreate';
import MemodetailScreen from './src/screens/MemoDetailScreen';
import MemoEditScreen from './src/screens/MemoEditScreen';
import MemoListScreen from './src/screens/MemoListScreen';
import SignUpScreen from './src/screens/SignUpScreen';
import { firebaseConfig } from './env';
require('firebase/firestore');
if (firebase.apps.length === 0) {
firebase.initializeApp(firebaseConfig);
}
const Stack = createStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator
initialRouteName="LogIn"
screenOptions={{
headerStyle: { backgroundColor: '#467FD3' },
headerTitleStyle: { color: '#fff' },
headerTitle: 'Memo App',
headerTintColor: '#fff',
headerBackTitle: ' ',
cardStyleInterpolator: CardStyleInterpolators.forHorizontalIOS,
}}
>
<Stack.Screen name="MemoList" component={MemoListScreen} />
<Stack.Screen name="MemoDetail" component={MemodetailScreen} />
<Stack.Screen name="MemoEdit" component={MemoEditScreen} />
<Stack.Screen name="MemoCreator" component={MemoCreateScreen} />
<Stack.Screen
name="LogIn"
component={LogInScreen}
options={{
cardStyleInterpolator: CardStyleInterpolators.forFadeFromBottomAndroid,
gestureEnabled: true,
gestureDirection: 'horizontal',
}}
/>
<Stack.Screen
name="SignUp"
component={SignUpScreen}
options={{
cardStyleInterpolator: CardStyleInterpolators.forFadeFromBottomAndroid,
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}