-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
43 lines (39 loc) · 1.12 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the TypeScript template
* https://github.com/react-native-community/react-native-template-typescript
*
* @format
*/
import React from 'react';
import {Provider} from 'react-redux';
import store from './redux/store';
import {StyleSheet, View} from 'react-native';
import {NativeRouter, Route} from 'react-router-native';
import global from './styles/global';
import Login from './Views/#';
import # from './Views/#';
import Nav from './components/Nav';
import ModifyProfile from './Views/User/ModifyProfile';
const App = () => {
return (
<Provider store={store}>
<NativeRouter>
<View style={[styles.container, global.global]}>
<Route exact path={'/'} component={Nav} />
<Route path="/#" component={#} />
<Route path="/#" component={Login} />
<Route path={'/modifyProfile'} component={ModifyProfile} />
</View>
</NativeRouter>
</Provider>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
export default App;