-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
90 lines (86 loc) · 2.36 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// /**
// * 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 {
// StyleSheet,
// View,
// Text, TouchableOpacity,
// } from "react-native";
// import {NavigationContainer} from '@react-navigation/native'
// import {createNativeStackNavigator} from "@react-navigation/native-stack";
// import {createBottomTabNavigator} from "@react-navigation/bottom-tabs";
// import HomeScreen from "./src/screens/TabScreens/HomeTab/HomeScreen";
//
// const RootStack = createNativeStackNavigator();
// const SplashScreen = ({navigation }) => {
// return (
// <View style={styles.container}>
// <TouchableOpacity onPress={() => navigation.navigate('MainApp')}>
// <Text style={styles.title}>Edole</Text>
// </TouchableOpacity>
//
// </View>
// )
// }
//
//
// const App = () => {
// // const isDarkMode = useColorScheme() === 'dark';
// //
// // const backgroundStyle = {
// // backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
// // };
//
// return (
// <NavigationContainer>
// <RootStack.Navigator screenOptions={
// { headerShown: false }
// }>
// <RootStack.Screen name="SplashScreen" component={SplashScreen} />
// <RootStack.Screen name="MainApp" component={Navigator} />
// </RootStack.Navigator>
// </NavigationContainer>
// );
// };
//
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// backgroundColor: "#336099",
// justifyContent: "center",
// alignItems: "center",
// },
// title: {
// fontSize: 30,
// fontWeight: "700",
// color: "#fff"
// }
// });
//
// export default App;
import React from 'react';
import {StatusBar} from 'react-native';
import {Provider as ReduxProvider} from 'react-redux';
// import Index from './navOneSource/navigation/Index';
import store from './src/redux/store';
import {NavigationContainer} from '@react-navigation/native';
import NavigationFlow from './src/nav';
const App = () => {
return (
<ReduxProvider store={store}>
<NavigationContainer>
<StatusBar hidden />
<NavigationFlow />
</NavigationContainer>
</ReduxProvider>
);
};
export default App;