Няма описание

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import React from "react";
  2. import { View, Text, StyleSheet, TouchableOpacity, Linking, Button, Pressable} from "react-native";
  3. import { FlatList, TouchableHighlight } from "react-native-gesture-handler";
  4. import Leyes from "./leyes.json";
  5. const Derechos = () => {
  6. return (
  7. <><View>
  8. <Text style={styles.container}>Leyes de la Tierra</Text>
  9. <View>
  10. {Leyes.map(ley => {
  11. return (
  12. <><Pressable style={styles.button}
  13. onPress={() => {
  14. Linking.openURL(ley.link.toString());
  15. }}></Pressable></>
  16. );
  17. })}
  18. </View>
  19. </View>
  20. <View>
  21. <Text style={styles.container}>Derechos del activista climatico</Text>
  22. </View>
  23. <View>
  24. <Text style={styles.container}>Leyes de Puerto Rico</Text>
  25. </View></>
  26. );
  27. }
  28. const styles = StyleSheet.create({
  29. container: {
  30. fontSize: 25,
  31. textAlign: "center",
  32. marginTop: "10%"
  33. },
  34. laws: {
  35. fontSize: 15,
  36. textAlign: "center",
  37. marginTop: "5%"
  38. },
  39. button: {
  40. alignItems: 'center',
  41. justifyContent: 'center',
  42. paddingVertical: 12,
  43. paddingHorizontal: 0.5,
  44. borderRadius: 4,
  45. elevation: 3,
  46. backgroundColor: 'black',
  47. }
  48. })
  49. export default Derechos