-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
49 lines (41 loc) · 1.29 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, {useState, Component } from 'react';
import { StyleSheet, Text, View, TextInput, Button, ScrollView, FlatList, TouchableOpacity } from 'react-native';
/*Custom Components import*/
import ScreenMainView from './components/ScreenMainView';
import ScreenCultureView from './components/ScreenCultureView';
import ScreenStationView from './components/ScreenStationView';
import ScreenTimeView from './components/ScreenTimeView';
import ScreenSearchView from './components/ScreenSearchView';
/*Navegation imports*/
import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
const styles = StyleSheet.create({
container: {
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
fullScreen :{
height:'100%'
}
});
/*const [currentScreen, setCurrentScreen] = useState('MAIN_VIEW');
let content = <ScreenMainView/>;
class App extends Component {
render() {
return (
<View style={styles.fullScreen}>
{content}
</View>
);
}
}
export default App;*/
const RootStack = createStackNavigator({
MAIN: ScreenMainView,
STATION: ScreenStationView,
SEARCH: ScreenSearchView,
TIME: ScreenTimeView,
CULTURE: ScreenCultureView
});
export default createAppContainer(RootStack);