optimizations

This commit is contained in:
Sone
2026-05-24 21:34:25 +02:00
parent 7e67fa8ea0
commit c0d472911b
8 changed files with 64 additions and 50 deletions
+4 -4
View File
@@ -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>