Skip to content

Commit

Permalink
fixed: kotlin SoLoader.init params to fix "library 'libhermes_executo…
Browse files Browse the repository at this point in the history
…r.so' not found (#4432)
  • Loading branch information
deepktp authored Jan 8, 2025
1 parent 90073d5 commit e2f210d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/_integration-with-existing-apps-kotlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ import android.app.Application
+import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
+import com.facebook.react.defaults.DefaultReactNativeHost
+import com.facebook.soloader.SoLoader
+import com.facebook.react.soloader.OpenSourceMergedSoMapping

-class MainApplication : Application() {
+class MainApplication : Application(), ReactApplication {
Expand All @@ -356,7 +357,7 @@ import android.app.Application

override fun onCreate() {
super.onCreate()
+ SoLoader.init(this, false)
+ SoLoader.init(this, OpenSourceMergedSoMapping)
+ if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
+ load()
+ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ import android.app.Application
+import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
+import com.facebook.react.defaults.DefaultReactNativeHost
+import com.facebook.soloader.SoLoader
+import com.facebook.react.soloader.OpenSourceMergedSoMapping

-class MainApplication : Application() {
+class MainApplication : Application(), ReactApplication {
Expand All @@ -356,7 +357,7 @@ import android.app.Application

override fun onCreate() {
super.onCreate()
+ SoLoader.init(this, false)
+ SoLoader.init(this, OpenSourceMergedSoMapping)
+ if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
+ load()
+ }
Expand Down

0 comments on commit e2f210d

Please sign in to comment.