-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
43 lines (40 loc) · 1.21 KB
/
App.js
File metadata and controls
43 lines (40 loc) · 1.21 KB
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
import * as React from "react";
import { Button, View, Text, StyleSheet, ScrollView } from "react-native";
import { store } from "./store/store";
import { Provider } from "react-redux";
import Counter from "./features/counter/Counter";
import Number from "./features/numbers/Number";
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
export default function App() {
const Tab = createBottomTabNavigator();
return (
<Provider store={store}>
<NavigationContainer>
<Tab.Navigator
screenOptions={{
tabBarStyle: {
height: 60,
},
tabBarLabelStyle: {
fontSize: 14,
margin: 0,
color: "black",
fontWeight: "bold",
},
}}
>
<Tab.Screen name="Counter example -- redux use" component={Counter} />
<Tab.Screen name="Arr example -- redux use" component={Number} />
</Tab.Navigator>
</NavigationContainer>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
},
});