Aucune description

Denuncias.js 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { useNavigation } from "@react-navigation/native";
  2. import { createNativeStackNavigator } from "@react-navigation/native-stack";
  3. import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
  4. import { NavigationContainer } from "@react-navigation/native";
  5. import React from "react";
  6. import { View, Text, StyleSheet, TouchableOpacity } from "react-native";
  7. const Denuncias = () => {
  8. const currNav = useNavigation();
  9. return (
  10. <View>
  11. <Text
  12. style={{
  13. fontSize: 30,
  14. textAlign: "center",
  15. marginTop: "20%",
  16. }}
  17. >
  18. Llenar formulario y listado de denuncias
  19. </Text>
  20. <TouchableOpacity
  21. style={styles.button}
  22. onPress={() => currNav.navigate("Formulario")}
  23. >
  24. <Text style={styles.text}> Formularios </Text>
  25. </TouchableOpacity>
  26. <TouchableOpacity
  27. style={styles.button}
  28. onPress={() => currNav.navigate("Lista")}
  29. >
  30. <Text style={styles.text}>Listado</Text>
  31. </TouchableOpacity>
  32. </View>
  33. );
  34. };
  35. export default Denuncias;
  36. const styles = StyleSheet.create({
  37. button: {
  38. width: 250,
  39. alignSelf: "center",
  40. alignItems: "center",
  41. justifyContent: "center",
  42. paddingVertical: 12,
  43. paddingHorizontal: 32,
  44. borderRadius: 4,
  45. elevation: 3,
  46. backgroundColor: "#009688",
  47. marginTop: "5%",
  48. },
  49. text: {
  50. fontSize: 16,
  51. lineHeight: 21,
  52. fontWeight: "bold",
  53. letterSpacing: 0.25,
  54. color: "white",
  55. },
  56. });