-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
71 lines (66 loc) · 2.89 KB
/
Copy pathApp.js
File metadata and controls
71 lines (66 loc) · 2.89 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
65
66
67
68
69
70
71
import 'react-native-gesture-handler';
import React from 'react';
import { StatusBar } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import Icon from '@expo/vector-icons/MaterialCommunityIcons';
import ColorDragDrop from './screens/ColorDragDrop';
import ReorderableList from './screens/ReorderableList';
import KnightMoves from './screens/KnightMoves';
import Scrolling from './screens/Scrolling';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
const { Navigator, Screen } = createBottomTabNavigator();
const App = () => {
return (
<>
<StatusBar barStyle="dark-content" />
<GestureHandlerRootView style={{ flex: 1 }}>
<NavigationContainer>
<Navigator>
<Screen
name="colorDragDrop"
component={ColorDragDrop}
options={{
tabBarLabel: 'Color Drag/Drop',
tabBarIcon: ({ color, size }) => (
<Icon name="water" color={color} size={size} />
),
}}
/>
<Screen
name="reorderableList"
component={ReorderableList}
options={{
tabBarLabel: 'Reorderable List',
tabBarIcon: ({ color, size }) => (
<Icon name="format-list-bulleted" color={color} size={size} />
),
}}
/>
<Screen
name="knightMoves"
component={KnightMoves}
options={{
tabBarLabel: 'Knight Moves',
tabBarIcon: ({ color, size }) => (
<Icon name="chess-knight" color={color} size={size} />
),
}}
/>
<Screen
name="scrolling"
component={Scrolling}
options={{
tabBarLabel: 'Scrolling',
tabBarIcon: ({ color, size }) => (
<Icon name="arrow-left-right" color={color} size={size} />
),
}}
/>
</Navigator>
</NavigationContainer>
</GestureHandlerRootView>
</>
);
};
export default App;