import React from "react"; import { Picker as RNPicker } from "react-native"; type Props = { onChange?: (value: any) => void; options: { label?: string; value: string }[]; value?: string; }; const Picker = ({ onChange, options, value }: Props) => ( {options.map((option) => ( ))} ); export default Picker;