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.
|
|
|
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,
|
|
|
|
borderBottomColor: colors.dark_blue,
|
|
|
|
borderBottomWidth: 1
|
|
|
|
},
|
|
|
|
text: {
|
|
|
|
fontSize: 18,
|
|
|
|
color: colors.white,
|
|
|
|
fontWeight: "400"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
export const RowItem = ({ onPress = () => {}, name, color }) => (
|
|
|
|
<TouchableOpacity onPress={onPress} activeOpacity={0.8}>
|
|
|
|
<View style={[styles.row, { backgroundColor: color }]}>
|
|
|
|
<Text style={styles.text}>{name}</Text>
|
|
|
|
</View>
|
|
|
|
</TouchableOpacity>
|
|
|
|
)
|