Describe the bug
After updating from 1.20.7 to 1.21.5, some Android devices started to crash.
I can't reproduce it myself; I only see it in Firebase and Google Developer Console for some users. Moreover, according to the logs, they don't even reach the screens that use components from react-native-keyboard-controller (only main app wrapping with <KeyboardProvider></KeyboardProvider>) for some, it happens a few seconds after the app starts.
Exception com.facebook.react.uimanager.IllegalViewOperationException:
at com.facebook.react.uimanager.NativeViewHierarchyManager.resolveView (NativeViewHierarchyManager.java:99)
at com.facebook.react.uimanager.UIManagerModule.resolveView (UIManagerModule.java:834)
at com.reactnativekeyboardcontroller.modules.KeyboardControllerModuleImpl.viewPositionInWindow$lambda$4 (KeyboardControllerModuleImpl.kt:92)
at com.reactnativekeyboardcontroller.modules.KeyboardControllerModuleImpl.$r8$lambda$bd9deIMiMRivaubKGW1JeM5kJtQ (Unknown Source)
at com.reactnativekeyboardcontroller.modules.KeyboardControllerModuleImpl$$ExternalSyntheticLambda1.run (D8$$SyntheticClass)
at android.os.Handler.handleCallback (Handler.java:995)
at android.os.Handler.dispatchMessage (Handler.java:103)
at android.os.Looper.loopOnce (Looper.java:273)
at android.os.Looper.loop (Looper.java:363)
at android.app.ActivityThread.main (ActivityThread.java:10060)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:632)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:975)
- Device: Samsung S24 Ultra
- OS: Android 16
- RN version: 0.79.6
- RN architecture: old
- JS engine: Hermes
- Library version: 1.21.5
Describe the bug
After updating from
1.20.7to1.21.5, some Android devices started to crash.I can't reproduce it myself; I only see it in Firebase and Google Developer Console for some users. Moreover, according to the logs, they don't even reach the screens that use components from
react-native-keyboard-controller(only main app wrapping with<KeyboardProvider></KeyboardProvider>) for some, it happens a few seconds after the app starts.