-
-
Notifications
You must be signed in to change notification settings - Fork 518
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
fix(Android): prevent throwing exception with UnsatisfiedLinkError
#2128
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
My only worry is whether this is only type of exception that can be thrown here. Maybe going with more generic error type could be worth considering
According to the Android documentation in our case only UnsatisfiedLinkError exception can be thrown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This convinces me
UnsatisfiedLinkError
## Description Fixes software-mansion#2115 The `System.loadLibrary("rnscreens")` can throw an exception that inherits from the `Error` class instead of the `Exception` class.
Description
Fixes #2115
The
System.loadLibrary("rnscreens")
can throw an exception that inherits from theError
class instead of theException
class.