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
600 B

import React from "react";
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
const styles = StyleSheet.create({
row: {
paddingHorizontal: 15,
paddingVertical: 20,
backgroundColor: "#36B1F0",
marginBottom: 1
},
text: {
fontSize: 18,
color: "#fff",
fontWeight: "600"
}
});
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>
);