-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
28 lines (27 loc) · 957 Bytes
/
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
import React from 'react';
import HomeScreen from './screens/Home';
import 'react-native-gesture-handler';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import CustomNavigationBar from './screens/CustomNavigationBar';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { Provider } from 'react-redux';
import store from './redux/store';
const Stack = createStackNavigator();
export default function App() {
return (
<Provider store={store}>
<SafeAreaProvider>
<NavigationContainer>
<Stack.Navigator initialRouteName="Home"
screenOptions={{
header: (props) => <CustomNavigationBar {...props} />,
}}
>
<Stack.Screen name="Home" component={HomeScreen} />
</Stack.Navigator>
</NavigationContainer>
</SafeAreaProvider>
</Provider>
);
}