-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
32 lines (29 loc) · 1.04 KB
/
App.tsx
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
import React from 'react';
import { Text, StyleSheet } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import Detail from './components/screens/Detail';
import LinearGradient from 'react-native-linear-gradient';
export default function App() {
const Tab = createBottomTabNavigator();
return (
<NavigationContainer>
<Tab.Navigator initialRouteName='detail' screenOptions={{
tabBarStyle : {
backgroundColor : '#192f6a',
margin : 0,
padding : 0,
borderWidth : 0,
height : 50,
}
}}>
<Tab.Screen options={{headerShown:false}} name='detail' component={Detail} />
</Tab.Navigator>
</NavigationContainer>
)
}
const styles = StyleSheet.create({
linearGradient :{
flex: 1,
}
})