optimizations
This commit is contained in:
@@ -2,6 +2,8 @@ import { View, StyleSheet } from "react-native";
|
||||
import { Picker, PickerProps } from "@react-native-picker/picker";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
|
||||
import { colors } from "@/constants/colors";
|
||||
|
||||
export const PickerItem = Picker.Item;
|
||||
|
||||
interface CustomPickerProps extends PickerProps {
|
||||
@@ -17,9 +19,7 @@ export const CustomPicker = ({
|
||||
<View style={styles.container}>
|
||||
<Picker
|
||||
selectedValue={selectedValue}
|
||||
onValueChange={(itemValue, itemIndex) => {
|
||||
onValueChange?.(itemValue, itemIndex);
|
||||
}}
|
||||
onValueChange={onValueChange}
|
||||
style={[styles.pickerStyle, { appearance: "none" } as any]}
|
||||
>
|
||||
{children}
|
||||
@@ -27,7 +27,7 @@ export const CustomPicker = ({
|
||||
<Ionicons
|
||||
name="chevron-down"
|
||||
size={20}
|
||||
color="#333"
|
||||
color={colors.darkGray}
|
||||
style={styles.customIcon}
|
||||
/>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user