-
Notifications
You must be signed in to change notification settings - Fork 4
/
App.js
77 lines (73 loc) · 2.04 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
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
import React from 'react';
import { Text, StyleSheet, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import Icon from 'react-native-vector-icons/Ionicons';
import Movie from './screens/Movie';
import TV from './screens/TV';
import Movieid from './screens/Movieid';
import TVid from './screens/TVid';
import SimilarMovieid from './screens/SimilarMovieid';
const Tab = createBottomTabNavigator();
const Stack = createNativeStackNavigator();
function HomeScreen() {
return (
<Tab.Navigator
screenOptions={{
tabBarActiveTintColor: '#7DD329',
tabBarInactiveTintColor: 'gray',
tabBarShowLabel: false,
headerShown: false,
tabBarLabelStyle: {
fontSize: 15
},
tabBarStyle: {
height: 60,
paddingHorizontal: 5,
paddingBottom: 3,
backgroundColor: 'rgba(39, 39, 42, 1)',
position: 'absolute',
borderTopWidth: 0,
},
}}
>
<Tab.Screen
name="Movie"
component={Movie}
options={{
tabBarLabel: 'Movie',
tabBarIcon: ({ color, size }) => (
<Icon name="film-outline" color={color} size={30} />
),
}}
/>
<Tab.Screen
name="TV"
component={TV}
options={{
tabBarLabel: 'TV',
tabBarIcon: ({ color, size }) => (
<Icon name="tv-outline" color={color} size={30} />
),
}}
/>
</Tab.Navigator>
);
}
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false
}}>
<Stack.Screen name="HomeScreen" component={HomeScreen} />
<Stack.Screen name="Movieid" component={Movieid} />
<Stack.Screen name="TVid" component={TVid} />
<Stack.Screen name="SimilarMovieid" component={SimilarMovieid} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;