-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Crash on Android 14 (S24 Ultra) when setting edges prop on RNCSafeAreaView #475
Comments
Are you able to get a better stack trace? |
Here is the complete stacktrace at google play, check if can help.
|
Are you able to reproduce it on a device? |
No, because I don't have the s24 ultra, what I'm managing to get is a problem from a customer in production who is helping us with some tests. |
I’ll leave this issue open - with the caveat it’s unlikely to get taken on by any current maintainers. If you find more information - or better, a fix - let us know! |
Stucked in same issue. |
Description
I've encountered a crash in my React Native application on Android when trying to set the
edges
prop onRNCSafeAreaView
. The application crashes with the following exception:Exception com.facebook.react.bridge.JSApplicationIllegalArgumentException: Error while updating property 'edges' of a view managed by: RNCSafeAreaView
...
Caused by java.lang.ClassCastException: com.facebook.react.bridge.ReadableNativeMap cannot be cast to com.facebook.react.bridge.ReadableArray
This issue seems to be related to how the
edges
prop is handled in the native Android implementation ofRNCSafeAreaView
.Steps to Reproduce
SafeAreaView
with theedges
prop set to an array of strings, e.g.,edges={['top', 'left', 'right']}
.Expected Behavior
The
SafeAreaView
should correctly apply the safe area insets according to the specified edges without causing a crash.Actual Behavior
The application crashes on Android with a
JSApplicationIllegalArgumentException
related to theedges
prop.Environment
Code Snippet
Here are the snippets from my code where I use
SafeAreaView
:Additional Context
I've followed the documentation for react-native-safe-area-context and the usage of SafeAreaView seems to be correct according to the examples provided. This crash is blocking further development and testing on Android devices.
Any assistance or guidance on how to resolve this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: