Closed kevinvangelder closed 3 years ago
Same issue, I reported it here : https://github.com/lawnstarter/react-native-picker-select/issues/422
@sylvainbaronnet https://youtu.be/QwoQgzBgJu8?t=946
@sylvainbaronnet Your issue has a lot more info in it, I'll close mine in favor of yours.
@kevinvangelder I recommend you to keep it opens because mine is on another package
Are you using this with @react-navigation
? I've just had this same issue since upgrading to 0.64 and found that this problem occurred on screens where I had enabled gestures (gestureEnabled: true
in screenOptions
).
(
gestureEnabled: true
inscreenOptions
).
You save me 👍
@natwallbank Yes I am, thanks for the info.
Sadly, this fix doesn't work for me as the picker is in a MaterialTopTabNavigator and swipeEnabled={false}
doesn't resolve the crash. As far as I can tell, gesturesEnabled
isn't a valid option for a TabNavigator.
Sadly, this fix doesn't work for me as the picker is in a MaterialTopTabNavigator and
swipeEnabled={false}
doesn't resolve the crash. As far as I can tell,gesturesEnabled
isn't a valid option for a TabNavigator.
Is that MaterialTopTabNavigator referenced as a Screen? If so, you can supply it as options
there I think?
@natwallbank Good thought. I gave that a shot and I'm still getting the native exception.
I can confirm the issue, I just update my app and the test start to fail.
I am facing the same issue. Have you guys have found any solution?
"react": "17.0.1" "react-native": "0.64.0" "@react-native-picker/picker": "^1.12.0"
After lots of hours facing this issue our team discovered that in our case this package "react-native-snap-carousel" was causing the issue, I am not sure yet why but we deleted the carousel component and pickers of all the screens worked again. The really weird thing is that we used carousel package on different screens than pickers but when we go to any carousel view and return to picker view it fails.
I also use react-native-snap-carousel
in the app that has this issue, on another one where we don't use that lib, the picker doesn't crash on Android.
@sylvainbaronnet react-native-snap-carousel is causing that bug on the repository it has not been updated since May 2020, so we decided to use react-native-swiper-flatlist and react-native-fast-image instead our app is running again and pickers are working as is expected. Maybe for others facing this bug, the problem is in another depreciated package.
@jonra1993 Thanks a lot for the recommendation
I am facing the same issue. Has anybody found any solution?
"react": "17.0.1" "react-native": "0.64.0" "@react-native-picker/picker": "^1.12.0" "@react-navigation/native": "^5.9.3", "@react-navigation/stack": "^5.14.3",
I tried the approach mentioned by @natwallbank but it did not fix the issue.
I am not using any kind of carousel, swipe, or moving component to affect or interfere with the picker itself. Picker's inside a View and that View inside a stack.
"react": "16.13.1", "react-native": "0.64.0", "@react-native-picker/picker": "^1.9.8", "@react-navigation/bottom-tabs": "^5.11.2", "@react-navigation/material-top-tabs": "^5.3.10", "@react-navigation/native": "^5.8.10", "@react-navigation/stack": "^5.12.8"
I have the same problem with my project. Also, I use react-native-snap-carousel
.
I was trying to delete react-native-snap-carousel
but it did not give a result.
So I'm not sure about it's related.
Are you using this with
@react-navigation
? I've just had this same issue since upgrading to 0.64 and found that this problem occurred on screens where I had enabled gestures (gestureEnabled: true
inscreenOptions
).
Awesome 🙇
Hi all the problem is from react-native and they are working on a fix. Basically their problem is because they try to use the id of the inflated picker while it is not set.
If it is of any use to someone, I temporarily fixed the problem on my project by making the following modifications
In TextViewImpl.java and CheckedTextViewImpl.java
4a5
> import android.view.View;
23a25,33
> private View pickerView;
> public int getId() {
> return pickerView.getId();
> }
>
> public void setPickerView(View pickerView) {
> this.pickerView = pickerView;
> }
>
In ReactPickerManager.java
188a189,194
> if (convertView instanceof TextViewImpl) {
> ((TextViewImpl) convertView).setPickerView(parent);
> } else if (convertView instanceof CheckedTextViewImpl) {
> ((CheckedTextViewImpl) convertView).setPickerView(parent);
> }
>
It definitely is a bypass that should not be included in the sources but it solves the issue without changing used packages
they are working on a fix.
@mbouxin Do you happen to have an issue we can track on this?
they are working on a fix.
@mbouxin Do you happen to have an issue we can track on this?
Are you using this with
@react-navigation
? I've just had this same issue since upgrading to 0.64 and found that this problem occurred on screens where I had enabled gestures (gestureEnabled: true
inscreenOptions
).
gestureEnabled: false
works. Thanks
Here is the commit that will be cherry picked for .64.2 facebook/react-native@b0e8c1e And thats the issue for the discussion https://github.com/react-native-community/releases/issues/224
Are you using this with
@react-navigation
? I've just had this same issue since upgrading to 0.64 and found that this problem occurred on screens where I had enabled gestures (gestureEnabled: true
inscreenOptions
).
thank you, you save me
@kevinvangelder this is close-able react-native 0.64.2 is out with the fix for this included
This was a bug on React Native's side, should be fixed on React Native 0.64.2
When attempting to open the picker on Android, I get:
React: 17.0.1 React Native: 0.64.0-rc4 React Native Picker: 1.9.11