Skip to content

Exception thrown when executing UIFrameGuarded #675

@gesangseto

Description

@gesangseto

Describe the bug

everything was running smoothly before installing @react-native-picker/picker on clean project React Native: Error Exception thrown when executing UIFrameGuarded

To Reproduce

Steps to reproduce the behavior:

  1. npm install @react-native-picker/picker'
  2. react-native run-android
  3. See error on screen

Expected behavior

The RN Project and picker should running normally without throwing an error.

Screenshots

Image

Additional details

  • Device: [Android - Emulator]
  • OS: [Android: 13, Android SDK built for x68_64 ]
  • "react": "19.0.0",
  • "react-native": "0.79.2",
  • "react-native-picker-select": "^9.3.1",

Reproduction and/or code sample

import React from 'react';
import { View } from 'react-native';
import RNPickerSelect from 'react-native-picker-select';

const BatchCreate = ({navigation, route}) => {
  return (
    <View style={{flex: 1, backgroundColor: 'red'}}>
      <RNPickerSelect
        onValueChange={value => console.log(value)}
        items={[
          {label: 'Football', value: 'football'},
          {label: 'Baseball', value: 'baseball'},
          {label: 'Hockey', value: 'hockey'},
        ]}
      />
    </View>
  );
};

export default BatchCreate ;

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