-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.tsx
32 lines (29 loc) · 949 Bytes
/
App.tsx
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
import React from 'react';
import { StatusBar, StyleSheet, View } from 'react-native';
import { Provider } from 'react-redux';
import { NativeRouter, Route } from 'react-router-native';
import store from './src/common/configureStore';
import CameraHandler from './src/components/CameraHandler';
import Login from './src/components/Login';
import Splash from './src/components/Splash';
import Routing from './src/decorators/routing';
const App = () => (
<Provider store={store}>
<NativeRouter>
<View style={styles.container}>
<StatusBar hidden={true} />
<Routing />
<Route exact={true} path="/" component={Splash} />
<Route exact={true} path="/login" component={Login} />
<Route path="/camera" component={CameraHandler} />
</View>
</NativeRouter>
</Provider>
);
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column',
},
});
export default App;