import React, { useRef } from "react"; import { Picker } from "@react-native-picker/picker"; import { styles } from "./SelectDefaultPicker.style"; import type { SelectInternalPickerProps } from "../../types"; import { SelectPressable } from "../SelectPressable"; import { useAtlantisTheme } from "../../../AtlantisThemeContext"; type SelectDefaultPickerProps = SelectInternalPickerProps; export function SelectDefaultPicker({ children, options, disabled, onChange, }: SelectDefaultPickerProps) { const selectedItem = options.find(option => option.isActive); const pickerRef = useRef>(null); const { tokens } = useAtlantisTheme(); return ( {children} {options.map(({ label, value, isActive }, i) => ( ))} ); function isSelected(isActive: boolean | undefined): string { return isActive ? tokens["color-interactive"] : tokens["color-text"]; } }