Exception on Android
See original GitHub issueI am getting the following exception on Android in my application:
2020-04-18 15:58:30.280 18532-18720/com.app E/unknown:ReactNative: Exception in native call java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.Integer at com.gaspardbruno.staticsafeareainsets.RNStaticSafeAreaInsetsModule.getSafeAreaInsets(RNStaticSafeAreaInsetsModule.java:65) at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151) at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27) at android.os.Looper.loop(Looper.java:193) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226) at java.lang.Thread.run(Thread.java:764)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Hello, we have a PR ready to address this issue: https://github.com/Gaspard-Bruno/react-native-static-safe-area-insets/pull/19 There should be a new version with this fix soon.
Sorry for the delay. The PR was just merged and released in 2.1.1.