You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
851 B

import React from "react";
import { View, TouchableOpacity, Text, StyleSheet } from "react-native";
const styles = StyleSheet.create({
button: {
backgroundColor: "rgba(255, 255, 255, 0.3)",
borderRadius: 10,
paddingVertical: 15,
alignItems: "center",
justifyContent: "center",
width: "100%",
marginTop: 20
},
text: {
color: "#fff",
fontSize: 20,
textAlign: "center"
},
buttonContainer: {
flexDirection: "row",
flexWrap: "wrap",
marginTop: 20,
justifyContent: "space-between"
}
});
export const Button = ({ text, onPress = () => {} }) => (
<TouchableOpacity onPress={onPress} style={styles.button}>
<Text style={styles.text}>{text}</Text>
</TouchableOpacity>
);
export const ButtonContainer = ({ children }) => (
<View style={styles.buttonContainer}>{children}</View>
);