Ei kuvausta

Formulario.js 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 { View, Text, StyleSheet, TouchableOpacity, Linking} from "react-native";
  7. const Formulario = () => {
  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 EPA y DRNA</Text>
  18. <TouchableOpacity style={styles.button}
  19. onPress={() => currNav.navigate("Drna")}>
  20. <Text style={styles.text}>Formulario DRNA</Text>
  21. </TouchableOpacity>
  22. <TouchableOpacity style={styles.button}
  23. onPress={() => {
  24. Linking.openURL("https://echo.epa.gov/denuncie-violaciones-ambientales");
  25. }}>
  26. <Text style={styles.text}>Formulario EPA</Text>
  27. </TouchableOpacity>
  28. </View>
  29. )
  30. }
  31. export default Formulario
  32. const styles = StyleSheet.create({
  33. button: {
  34. width:250,
  35. alignSelf: 'center',
  36. alignItems: 'center',
  37. justifyContent: 'center',
  38. paddingVertical: 12,
  39. paddingHorizontal: 32,
  40. borderRadius: 4,
  41. elevation: 3,
  42. backgroundColor: '#009688',
  43. marginTop: "5%"
  44. },
  45. text: {
  46. fontSize: 16,
  47. lineHeight: 21,
  48. fontWeight: 'bold',
  49. letterSpacing: 0.25,
  50. color: 'white',
  51. }
  52. })