Nenhuma descrição

Formulario.js 1.6KB

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