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.
 
 
 

20 lines
393 B

import React from "react";
import { TouchableOpacity, StyleSheet } from "react-native";
import Text from "./Text";
function PickerItem({ item, onPress }) {
return (
<TouchableOpacity onPress={onPress}>
<Text style={styles.text}>{item.label}</Text>
</TouchableOpacity>
);
}
const styles = StyleSheet.create({
text: {
padding: 20,
},
});
export default PickerItem;