You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the @react-native-picker/picker package in a React Native project, navigating back from a screen containing the Picker component causes the following error on Android:
Error: Exception in HostFunction: java.lang.UnsupportedOperationException: addView(View) is not supported in AdapterView
Steps to Reproduce
Create a React Native app.
Install the @react-native-picker/picker package.
Add a screen with the Picker component inside a View.
Navigate to the screen with the Picker.
Press the back button to navigate away.
Observe the error.
Expected Behavior
The screen should unmount without throwing any errors.
Actual Behavior
An error is thrown when pressing the back button:
Error: Exception in HostFunction: java.lang.UnsupportedOperationException: addView(View) is not supported in AdapterView
Description
When using the
@react-native-picker/picker
package in a React Native project, navigating back from a screen containing the Picker component causes the following error on Android:Steps to Reproduce
@react-native-picker/picker
package.Picker
component inside aView
.Expected Behavior
The screen should unmount without throwing any errors.
Actual Behavior
An error is thrown when pressing the back button:
Reproduction Code
Weather.tsx
:Picker.tsx
:Environment
Attachments
The text was updated successfully, but these errors were encountered: