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.
 
 
 
 

37 lines
920 B

import React from "react"
import { View, TouchableOpacity, Text, StyleSheet } from "react-native"
import { colors } from "../components/Variables"
const styles = StyleSheet.create({
button: {
backgroundColor: colors.white_alpha,
borderRadius: 10,
paddingHorizontal: 10,
paddingVertical: 10,
alignItems: "center",
justifyContent: "center",
width: "100%",
marginTop: 20
},
text: {
color: colors.white,
fontSize: 20,
textAlign: "center"
},
buttonContainer: {
flexDirection: "row",
flexWrap: "wrap",
marginTop: 10,
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>
)