Nav apraksta

Navigation.js 764B

123456789101112131415161718192021222324252627
  1. import React from "react";
  2. import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
  3. import { NavigationContainer } from "@react-navigation/native";
  4. import Denuncias from "./screens/Denuncias";
  5. import Derechos from "./screens/Derechos";
  6. import Analisis from "./screens/Analisis";
  7. const Tab = createBottomTabNavigator();
  8. function Tabs() {
  9. return (
  10. <Tab.Navigator>
  11. <Tab.Screen name="Denuncias" component={Denuncias} />
  12. <Tab.Screen name="Derechos" component={Derechos} />
  13. <Tab.Screen name="Analisis" component={Analisis} />
  14. </Tab.Navigator>
  15. );
  16. }
  17. export default function Navigation(){
  18. return (
  19. <NavigationContainer>
  20. <Tabs />
  21. </NavigationContainer>
  22. );
  23. }