-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
47 lines (43 loc) · 1.37 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
import { StatusBar } from 'expo-status-bar';
import React, {useState, useEffect} from 'react';
import { StyleSheet, Text, View, Button, SafeAreaView, Form, Input, Dimensions, Image } from 'react-native';
import * as ImagePicker from 'expo-image-picker';
import * as Location from 'expo-location';
import MapView from 'react-native-maps';
import MainView from './client/features/main-view/MainView'
import { Provider } from 'react-redux';
import store from './client/store/store';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import CreatePost from './client/features/create-post-view/CreatePost';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Provider store = {store}>
<Stack.Navigator>
<Stack.Screen
name="Main"
component={MainView}
/>
<Stack.Screen
name="CreatePost"
component={CreatePost}
/>
</Stack.Navigator>
</Provider>
</NavigationContainer>
)
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
map: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height,
},
});