-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
47 lines (44 loc) · 1.47 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 * as React from "react";
import HomeScreen from "./src/screens/HomeScreen";
import SlotSelectionScreen from "./src/screens/SlotSelectionScreen";
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { Ionicons } from "@expo/vector-icons";
import { Entypo } from "@expo/vector-icons";
import { store, persistor } from "./src/store";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";
const Tab = createBottomTabNavigator();
function App() {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen
name="Home"
component={HomeScreen}
options={{
headerShown: false,
tabBarIcon: () => (
<Ionicons name="ios-home-outline" size={24} color="blue" />
),
}}
/>
<Tab.Screen
name="SlotSelection"
component={SlotSelectionScreen}
options={{
headerShown: false,
tabBarIcon: () => (
<Entypo name="time-slot" size={24} color="blue" />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
</PersistGate>
</Provider>
);
}
export default App;