-
-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IllegalArgumentException crash on Android #301
Comments
Related to this issue on |
Is there a workaround for this problem? My android simulator and phone crash whenever I touch the datepicker. |
Hi! I believe there is a naming collision. Could you help me try this out? Rename the UIManager.java and its references in this project and rebuild. You can do it in node modules or in android studio. |
I am not able to resolve this using this fix. With my limited understanding, I believe this issue is closer to the RN core as being discussed here: facebook/react-native#31245 |
Here is a patch-package script as a workaround for now
|
@sharifhh makes sense. I will take a look to see if this helps to solve the issue This is due to an issue on React Native Core (a new function that was implemented to support FABRIC architecture). Error is caused by views that are not directly managed by React Native. In particular, views that are not created by this method: The Core team is trying to remove the usage of the UIManager. Since the way React Native Core is checking if View is FABRIC or not is being used with the viewId mod 2: |
I don't manage to reproduce this crash 🤔 Would be great if anyone could provide a code sample or explanation of how to reproduce this from an empty project. |
@henninghall reproduced, minimal repro here: https://github.com/zmtmaster/issue The crash seems to be happening on only when PanGestureHandler (from https://github.com/zmtmaster/issue/blob/7d0899db5641cdc6bb40d1dadf23f8b84c833843/App.tsx#L28 |
I've same problems. Has anyone solved this problem? |
Working on it. Still investigating. This isn't related to RNGH, the only reason RNGH is showing up in the error is that it passes event data back to the Android touch system here to be handled by RN. So it is an issue with RN Core team, we probably have to wait for a fix on 0.64.1. |
Seems that there is a commit on master that should resolve the issue, should be fixed on the next version of react-native (0.65). |
@sharifhh thanks for the workaround! |
@sharifhh the patch-package script doesn't work for us, we can scroll the date picker now but still crashing 4/5 times (was 5/5 before ^^) |
I also tried @sharifhh's solution and unfortunately still get the crash. |
This issue is fixed in react native |
this fixed my problem thank you :) @sharifhh |
resolved issue: henninghall#301
Describe
Since upgrading to RN 0.64 we encounter following crash on Android
The weird part here is that in our project we use
react-native-gesture-handle
in other components but when we scroll to change the date fromDatePickerField
it starts to crash on Android and the log points out crash because ofreact-native-gesture-handler
. I am not sure that i am right if i post this issue in here but in fact there are maybe related things betweenDatePickerField
with this crash.Crash log:
IllegalArgumentException. Unable to find JSIModule for class UIManager
Smartphone
The text was updated successfully, but these errors were encountered: