import React from "react";
import { View, Text, StyleSheet, TouchableOpacity, Linking, Button, Pressable} from "react-native";
import { FlatList, TouchableHighlight } from "react-native-gesture-handler";
import Leyes from "./leyes.json";
const Derechos = () => {
return (
<>
Leyes de la Tierra
{Leyes.map(ley => {
return (
<> {
Linking.openURL(ley.link.toString());
}}>>
);
})}
Derechos del activista climatico
Leyes de Puerto Rico
>
);
}
const styles = StyleSheet.create({
container: {
fontSize: 25,
textAlign: "center",
marginTop: "10%"
},
laws: {
fontSize: 15,
textAlign: "center",
marginTop: "5%"
},
button: {
alignItems: 'center',
justifyContent: 'center',
paddingVertical: 12,
paddingHorizontal: 0.5,
borderRadius: 4,
elevation: 3,
backgroundColor: 'black',
}
})
export default Derechos