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.

26 lines
688 B

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