-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
25 lines (23 loc) · 962 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
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import 'react-native-gesture-handler';
import { Provider } from 'react-redux';
import store from '~/stores/store';
import { publicNavigators } from '~/navigation';
import config from '~/config';
const Stack = createNativeStackNavigator();
function App(): React.JSX.Element {
return (
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator initialRouteName={config.screens.homeLayout} screenOptions={{ headerShown: false }}>
{publicNavigators.map((navigation, index) => (
<Stack.Screen key={index} name={navigation.name} component={navigation.component} />
))}
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
}
export default App;