Skip to content

Crashes in production only - Android and iOS #487

Open
@RGDEV2022

Description

@RGDEV2022

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

  1. Use the basic setup guide to setup a test picker.
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions