-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
53 lines (47 loc) · 2.02 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
import * as React from 'react';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer } from '@react-navigation/native';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import Pantalla1 from './components/Pantalla1';
import Pantalla2 from './components/Pantalla2';
import Pantalla3 from './components/Pantalla3';
import Pantalla4 from './components/Pantalla4';
import { LogBox } from 'react-native';
LogBox.ignoreLogs([
//Parece ser que react navitagion instala un módulo que acaban de actualizar en fase experimental. Utilizo esta función para ignorar el mensaje informativo.
"[react-native-gesture-handler] Seems like you\'re using an old API with gesture components, check out new Gestures system!",
]);
const Tab = createBottomTabNavigator();
const App = () => {
return (
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen name='Pantalla 1: Modal' component={Pantalla1} options={{
tabBarLabel: 'Pantalla 1',
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="home" color={color} size={size} />
),
}} />
<Tab.Screen name='Pantalla 2: Stack' component={Pantalla2} options={{
tabBarLabel: 'Pantalla 2',
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="arrow-right" color={color} size={size} />
),
}} />
<Tab.Screen name='API Rick y Morty' component={Pantalla3} options={{
tabBarLabel: 'Pantalla 3',
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="archive" color={color} size={size} />
),
}} />
<Tab.Screen name='API Países' component={Pantalla4} options={{
tabBarLabel: 'Pantalla 4',
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="archive" color={color} size={size} />
),
}} />
</Tab.Navigator>
</NavigationContainer>
)
}
export default App;