A Picker component with an API compatible with @react-native-picker/picker. It uses a SwiftUI wheel Picker on iOS, a Material 3 ExposedDropdownMenuBox on Android, and a native <select> element on web.
Under the hood this component wraps the platform-specific @expo/ui primitives:
Update the import from import { Picker } from '@react-native-picker/picker' to import { Picker } from '@expo/ui/community/picker'.
mode, prompt, dropdownIconColor, dropdownIconRippleColor, numberOfLines, selectionColor, itemStyle, and accessibilityLabel props are not supported.
On Picker.Item, the style prop only applies color, backgroundColor, fontFamily, and fontSize. The top-level color and fontFamily props are still supported as aliases for the corresponding style values.
enabled on Picker.Item only applies on Android.
The reffocus() and blur() methods only have an effect on Android (open/close the dropdown). On iOS, the wheel picker is always visible.
Pass a style to Picker.Item to control color, backgroundColor, fontFamily, and fontSize per item, and enabled={false} to disable specific items on Android.
fontFamily accepts iOS font names (for example, 'Menlo') on iOS, and Compose generic families ('monospace', 'serif', 'sansSerif', 'cursive') or fonts loaded with expo-font on Android.
Use a ref to programmatically open and close the dropdown on Android. On iOS, these methods are no-ops because the wheel picker is always visible.
RefPickerExample.tsx
import{ useRef, useState }from'react';import{Button}from'react-native';import{Picker,typePickerRef}from'@expo/ui/community/picker';exportdefaultfunctionRefPickerExample(){const[language, setLanguage]=useState('java');const pickerRef =useRef<PickerRef>(null);return(<><Buttontitle="Open and close after 2s"onPress={()=>{
pickerRef.current?.focus();setTimeout(()=> pickerRef.current?.blur(),2000);}}/><Pickerref={pickerRef}selectedValue={language}onValueChange={setLanguage}><Picker.Itemlabel="Java"value="java"/><Picker.Itemlabel="JavaScript"value="js"/><Picker.Itemlabel="Objective C"value="objc"/><Picker.Itemlabel="Swift"value="swift"/></Picker></>);}
Style applied to the item label. Only the following values take effect:
color, backgroundColor, fontFamily, and fontSize. When also set
via the top-level color or fontFamily props, values from style win.
testID
Android
iOS
Web
Optional • Type: string
Test identifier.
value
Android
iOS
Web
Optional • Type: T
Value passed to onValueChange when this item is selected.
Types
PickerItemValue
Android
iOS
Web
Literal type: union
Acceptable values are: string | number | null
PickerRef
Android
iOS
Web
Ref handle for the Picker component.
Compatible with @react-native-picker/picker.