-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppScreen.js
62 lines (51 loc) · 1.41 KB
/
AppScreen.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
import HomePage from './Screens/HomePage';
import Search from './Screens/Search';
import { View, Text, StyleSheet, SafeAreaView, } from 'react-native'
import React, { Component } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
const Tab = createBottomTabNavigator();
const For_you =()=>{
return(
<View><Text>For you</Text></View>
)
}
const Home =()=>{
return(
<View style={{flex: 1,}}><HomePage /></View>
)
}
const Live =()=>{
return(
<View style={{flex: 1,}}><Search /></View>
)
}
export default function App() {
return (
<View style={styles.container}>
<SafeAreaView style={{flex: 1,}}>
<NavigationContainer>
<Tab.Navigator
initialRouteName="Home"
screenOptions={{
tabBarStyle: { backgroundColor: '#0A0A0A', color: 'FFFFFF', },
tabBarLabelStyle: { fontSize: 12, color: '#FFFFFF', },
tabBarIndicatorStyle: {backgroundColor: '#FFFFFF',},
headerShown: false
}}
>
<Tab.Screen name="Home" component={Home} />
<Tab.Screen name="For-you" component={For_you} />
<Tab.Screen name="Live" component={Live} />
</Tab.Navigator>
</NavigationContainer>
</SafeAreaView>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#0A0A0A',
}
})