-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
36 lines (32 loc) · 838 Bytes
/
Copy pathApp.js
File metadata and controls
36 lines (32 loc) · 838 Bytes
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
import React, { useState } from 'react';
import {
SafeAreaView,
StatusBar,
StyleSheet,
View,
} from 'react-native';
import {Provider} from 'react-redux';
import {applyMiddleware, createStore} from 'redux';
import ReduxThunk from 'redux-thunk';
import reducers from './src/redux/reducer';
import Login from './src/pages/login/Login';
import RootNavigation from './src/navigation/RootNavigation';
const store = createStore(reducers, {});
function App() {
const [login, setLogin] = useState(1);
return (
<Provider store={store}>
{login == 0 ? (
<View>
<StatusBar hidden/>
<Login/>
</View>
) : (
<SafeAreaView style={{backgroundColor: '#FFFFFF', flex:1}}>
<RootNavigation/>
</SafeAreaView>
)}
</Provider>
);
}
export default App;