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.
25 lines
688 B
25 lines
688 B
import React from "react"
|
|
import { View, Text, TouchableOpacity, StyleSheet } from "react-native"
|
|
import { colors } from "../components/Variables"
|
|
|
|
const styles = StyleSheet.create({
|
|
row: {
|
|
paddingHorizontal: 15,
|
|
paddingVertical: 20,
|
|
backgroundColor: colors.blue,
|
|
marginBottom: 1
|
|
},
|
|
text: {
|
|
fontSize: 18,
|
|
color: colors.white,
|
|
fontWeight: "400"
|
|
}
|
|
})
|
|
|
|
export const RowItem = ({ onPress = () => {}, name, color, textColor }) => (
|
|
<TouchableOpacity onPress={onPress} activeOpacity={0.8}>
|
|
<View style={[styles.row, { backgroundColor: color }]}>
|
|
<Text style={[styles.text, { color: textColor }]}>{name}</Text>
|
|
</View>
|
|
</TouchableOpacity>
|
|
)
|