Skip to content

Commit fc27e89

Browse files
piaskowykja1ns
authored andcommitted
Catch UnsatisfiedLinkError (software-mansion#2128)
## Description Fixes software-mansion#2115 The `System.loadLibrary("rnscreens")` can throw an exception that inherits from the `Error` class instead of the `Exception` class.
1 parent 5748588 commit fc27e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/swmansion/rnscreens/ScreensModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ScreensModule(private val reactContext: ReactApplicationContext)
2525
} else {
2626
Log.e("[RNScreens]", "Could not install JSI bindings.")
2727
}
28-
} catch (exception: Exception) {
28+
} catch (exception: UnsatisfiedLinkError) {
2929
Log.w("[RNScreens]", "Could not load RNScreens module.")
3030
}
3131
}

0 commit comments

Comments
 (0)