-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
41 lines (37 loc) · 1.28 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
import React from 'react';
import { Provider } from 'react-redux';
import store from './android/app/src/main/store';
import "react-native-devsettings";
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import Users from './android/app/src/main/screens/users';
import Photos from './android/app/src/main/screens/photos';
import { View } from 'react-native';
import globalStyles from './android/app/src/main/styles/globalStyles';
const Stack = createStackNavigator();
/**
* Renders the main application component.
*
* @return {JSX.Element} The rendered main application component.
*/
const App = () => {
return (
<Provider store={store}>
<View style={globalStyles.container}>
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false, // Hide the header
gestureEnabled: true, // Enable gestures
cardStyle: globalStyles.cardStyle, // Apply global card style
}}
>
<Stack.Screen name="Users" component={Users} />
<Stack.Screen name="Photos" component={Photos} />
</Stack.Navigator>
</NavigationContainer>
</View>
</Provider>
);
};
export default App