-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
103 lines (87 loc) · 2.35 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
101
102
103
import React from 'react';
import { StyleSheet, Text, View, AsyncStorage, YellowBox, Image } from 'react-native';
import { Tabs } from './app-file/config/Router';
// import { SplashPage } from './app-file/screens/SplashPage';
// import { SettingPageNav } from './app-file/screens/SettingPageRoute';
import { configs } from './app-file/config/Configs';
import LanguageData from './app-file/asset/language.json';
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);
const langauge = LanguageData.bn[0];
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
data: (<View style={styles.container}>
{/* <Image source={require('./app-file/asset/ramadan_splash_5.png')} style={{ width: '100%', height: 196, flexDirection: 'row', }} /> */}
</View>)
}
}
// getToSetting() {
// this.setState({
// data: (<SettingPageNav />)
// })
// }
getData() {
setTimeout(() => {
this.setState({
data: (
<Tabs />
)
})
}, 120)
}
componentDidMount = () => {
//AsyncStorage.clear();
this.getData();
// AsyncStorage.getItem('user_info')
// .then((item) => {
// console.log(item)
// if (item == null) {
// AsyncStorage.setItem('user_info', JSON.stringify({
// "id": 18,
// "name": "ঢাকা",
// "iftar_time": 0.00,
// "sehri_time": 0.00
// }))
// this.getData();
// } else {
// this.getData();
// }
// });
// if (this.haveData() !== null){
// this.getToSetting();
// } else {
// this.getData();
// }
}
render() {
return this.state.data
}
}
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// backgroundColor: '#fff',
// alignItems: 'center',
// justifyContent: 'center',
// },
// sp_container: {
// padding: 10, flex: 1, justifyContent: 'center',
// backgroundColor: '#ddd'
// },
// text_style: {
// color: configs.defaultColor,
// fontSize: 16,
// fontWeight: 'bold',
// textAlign: 'center'
// }
// });
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}
})
export default App;