-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
100 lines (87 loc) · 2.63 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import 'react-native-gesture-handler';
import React ,{Component} from 'react';
import {Text,View,TextInput,StyleSheet,Button,FlatList,TouchableOpacity,Animated} from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import AsyncStorage from '@react-native-community/async-storage';
import TodoApp from "./src/screens/TodoApp";
import TodoAppRedux from './src/screens/TodoAppRedux';
import Home from "./src"
import Switch from "./src/screens/Switch"
import LoginChat from "./src/screens/loginChat";
import Chat from "./src/screens/Chat";
import Welcome from "./src/screens/Welcome";
import Splach from "./src/screens/Splash";
const Stack = createStackNavigator();
export default class App extends Component {
render(){
const isLogeIn = AsyncStorage.getItem('user');
return(
<NavigationContainer>
<Stack.Navigator>
{/*<Stack.Screen name="Splach" options={{ headerShown: false }} component={Splach} />*/}
<Stack.Screen name="Welcome" options={{ headerShown: false }} component={Welcome} />
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="TodoApp" options={{ headerShown: false }} component={TodoApp} />
<Stack.Screen name="TodoAppRedux" component={TodoAppRedux} />
<Stack.Screen name="Switch" component={Switch} />
<Stack.Screen name="LoginChat" component={LoginChat} />
<Stack.Screen name="Chat" component={Chat} />
</Stack.Navigator>
</NavigationContainer>
)
}
};
const styles = StyleSheet.create({
container: {
height:'100%',
// backgroundColor:'grey'
},
input: {
height:40,
width:'100%',
borderWidth:1,
borderColor:'black',marginTop:0
}
,
input_view:{
flexDirection:'row',
position:'absolute',
bottom:0
},
done_text: {
textDecorationLine: 'line-through'
},
undone_text: {
textDecorationLine: 'none'
},
button:{
width:50,
height:50,
backgroundColor:'blue',
borderRadius:50,
justifyContent:'center',
alignItems:'center',
position:'absolute',
right:2,
bottom:50,
color:'white',alignSelf:'flex-end',marginRight:20,
},
button_text:{
color:'white',
fontSize:35
},
header:{
backgroundColor:'blue',
color:'white',
height:30,
textAlign:'center',
paddingTop:5
},
listbox:{
flexDirection:'row'
},
listbox_button:{
flexDirection:'row'
},
});