-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
49 lines (44 loc) · 1.24 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
import React from 'react';
import { Platform, StatusBar, StyleSheet, View, Text } from 'react-native';
// import { AppLoading, Asset, Font, Icon } from 'expo';
import { createStackNavigator } from 'react-navigation';
import HomeScreen from './screens/HomeScreen'
import MovieRoomCreation from './screens/MovieRoomCreation'
import RecipeRoomCreation from './screens/RecipeRoomCreation'
import RoomLoading from './screens/RoomLoading'
import Room from './screens/Room'
import JoinRoom from './screens/JoinRoom'
import RoomLoadingView from './components/RoomLoadingView'
const AppNavigator = createStackNavigator(
{
Home: HomeScreen,
MovieRoomCreation: MovieRoomCreation,
RecipeRoomCreation: RecipeRoomCreation,
RoomLoading: RoomLoading,
RoomLoadingView: RoomLoadingView,
Room: Room,
JoinRoom: JoinRoom,
},
{
initialRouteName: 'Home',
}
);
export default class App extends React.Component {
state = {
isLoadingComplete: false,
};
render() {
return (
<View style={styles.container}>
{Platform.OS === 'ios' && <StatusBar hidden />}
<AppNavigator />
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
});