-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
64 lines (62 loc) · 2.15 KB
/
App.js
File metadata and controls
64 lines (62 loc) · 2.15 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { useDeviceOrientation } from "@react-native-community/hooks";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { NavigationContainer } from "@react-navigation/native";
import React from "react";
import Determinanticon from "./assets/Determinanticon";
import MatrixIcon from "./assets/MatrixIcon";
import Matrics4x from "./components/Matrics4x";
import Matrics9x from "./components/Matrics9x";
import { StatusBar } from "react-native";
export default function App() {
const orientation = useDeviceOrientation();
const Tab = createBottomTabNavigator();
return (
<NavigationContainer>
<StatusBar barStyle={"default"} />
<Tab.Navigator safeAreaInsets={{ top: 80 }} detachInactiveScreens={true}>
<Tab.Screen
name="Matrics4x"
children={() => <Matrics4x />}
options={{
headerShown: false,
tabBarIcon: ({ focused }) => <MatrixIcon focused={focused} />,
tabBarHideOnKeyboard: true,
tabBarStyle: {
backgroundColor: "rgb(230, 247, 255)",
height: orientation.landscape ? 50 : 70,
},
tabBarLabelStyle: {
fontSize: 18,
fontStyle: "italic",
fontWeight: "800",
color: "black",
paddingBottom: 8,
},
tabBarActiveBackgroundColor: "rgb(179, 255, 179)",
}}
/>
<Tab.Screen
name="Matrics9x"
children={() => <Matrics9x />}
options={{
tabBarIcon: ({ focused }) => <Determinanticon focused={focused} />,
headerShown: false,
tabBarHideOnKeyboard: true,
tabBarStyle: {
backgroundColor: "rgb(230, 247, 255)",
height: orientation.landscape ? 50 : 70,
},
tabBarLabelStyle: {
fontSize: 18,
fontStyle: "italic",
fontWeight: "800",
color: "black",
paddingBottom: 8,
},
tabBarActiveBackgroundColor: "yellowblue",
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}