Нема описа

Denuncias.js 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. >Llenar formulario y
  18. listado de denuncias</Text>
  19. <TouchableOpacity
  20. style={styles.button}
  21. onPress={() => currNav.navigate("Formulario")}
  22. >
  23. <Text style={styles.text}> Formularios </Text>
  24. </TouchableOpacity>
  25. <TouchableOpacity
  26. style={styles.button}
  27. onPress={() => currNav.navigate("Lista")}
  28. >
  29. <Text style={styles.text}>Listado</Text>
  30. </TouchableOpacity>
  31. </View>
  32. )
  33. }
  34. export default Denuncias
  35. const styles = StyleSheet.create({
  36. button: {
  37. width:250,
  38. alignSelf: 'center',
  39. alignItems: 'center',
  40. justifyContent: 'center',
  41. paddingVertical: 12,
  42. paddingHorizontal: 32,
  43. borderRadius: 4,
  44. elevation: 3,
  45. backgroundColor: '#009688',
  46. marginTop: "5%"
  47. },
  48. text: {
  49. fontSize: 16,
  50. lineHeight: 21,
  51. fontWeight: 'bold',
  52. letterSpacing: 0.25,
  53. color: 'white',
  54. }
  55. })