Open
Description
Describe the bug
Works in the Expo Go simulator for both Android and iOS. But crashes in production for both.
On iOS, it crashes when you try to open the picker. On Android it crashes before opening a component that has the picker import.
To Reproduce
- Use the basic setup guide to setup a test picker.
- Open the component in a production version of the application.
Expected behavior
Should behave the same as when tested inside the simulator with no crashes.
Screenshots
n/a.
Additional details
- Device: Android and iOS - Tested multiple devices with same issue.
- OS: Any iOS or Android version (Tested in iOS 16 and Android 10, 11)
- react-native-picker-select version: 8.0.4
- react-native version: 0.68.2
- expo sdk version: 45
Reproduction and/or code sample
<RNPickerSelect
value={props.value}
placeholder={props.placeholder}
textInputProps={{ multiline: props.multiline }}
pickerProps={{ numberOfLines: 10 }}
useNativeAndroidPickerStyle={false}
style={{
inputIOS: {
fontSize: 14,
minHeight: 40,
paddingLeft: 10,
paddingRight: 10,
borderRadius: 4,
backgroundColor: 'white',
shadowColor: '#000',
shadowOffset: { width: 0, height: 1 },
shadowOpacity: 0.1,
shadowRadius: 5,
elevation: 5
},
inputAndroid: {
fontSize: 14,
minHeight: 40,
paddingLeft: 10,
paddingRight: 10,
borderRadius: 4,
backgroundColor: 'white',
shadowColor: '#000',
shadowOffset: { width: 0, height: 1 },
shadowOpacity: 0.1,
shadowRadius: 5,
elevation: 5
}
}}
onValueChange={(value) => props.setValue(value)}
items={props.items}
/>
Metadata
Metadata
Assignees
Labels
No labels