This repository has been archived by the owner on Oct 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
49 lines (43 loc) · 1.49 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
/**
* 제대로 가자 for React Native
* 작성자 - 이청길
* 작성일 - 2018.07.26
*/
import React, { Component } from 'react';
import { StatusBar, Platform, View, Text, TextInput ,ActivityIndicator} from 'react-native';
import changeNavigationBarColor, { HideNavigationBar } from 'react-native-navigation-bar-color'
import { SafeAreaView } from 'react-navigation';
import MainDrawer from './activity/MainTabNavigation';
import Splash from './activity/splash'
import SplashStackNavigator from './activity/SplashStackNavigator';
export default class App extends Component {
constructor(props) {
super(props);
this.state = {
isLoaded: false //api를 불러왔을때는 true가 되도록
}
}
componentDidMount = () => {
StatusBar.setTranslucent(true);
StatusBar.setBarStyle('dark-content')
StatusBar.setBackgroundColor('#ffffff00');
//changeNavigationBarColor('#000000', true)
// HideNavigationBar();
}
render() {
const { isLoaded } = this.state;
// if(!isLoaded) {
// if(Platform.OS === 'android') { StatusBar.setBackgroundColor('#ffffff00'); }
// StatusBar.setTranslucent(true);
// StatusBar.setBarStyle('light-content');
// } else {
// if(Platform.OS === 'android') { StatusBar.setBackgroundColor('#ffffffff'); }
// StatusBar.setTranslucent(false);
// StatusBar.setBarStyle('dark-content');
// }
// return isLoaded ? <MainDrawer/> : <Splash />
return (
<SplashStackNavigator />
)
}
}