Skip to content

Commit

Permalink
fix(android): ensure SoLoader is initialized (#2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed May 7, 2024
1 parent 58ac77d commit 590f8f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.soloader.SoLoader
import com.microsoft.reacttestapp.manifest.Manifest
import com.microsoft.reacttestapp.manifest.ManifestProvider
import com.microsoft.reacttestapp.react.ReactBundleNameProvider
Expand Down Expand Up @@ -37,6 +38,8 @@ class TestApp : Application(), ReactApplication {
override fun onCreate() {
super.onCreate()

SoLoader.init(this, false)

reactNativeBundleNameProvider = ReactBundleNameProvider(this, manifest.bundleRoot)
reactNativeHostInternal =
TestAppReactNativeHost(this, reactNativeBundleNameProvider)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.app.Application
import android.content.Context
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.soloader.SoLoader
import com.microsoft.reacttestapp.manifest.Manifest
import com.microsoft.reacttestapp.manifest.ManifestProvider
import com.microsoft.reacttestapp.react.ReactBundleNameProvider
Expand All @@ -29,6 +30,8 @@ class TestApp : Application(), ReactApplication {
override fun onCreate() {
super.onCreate()

SoLoader.init(this, false)

reactNativeBundleNameProvider = ReactBundleNameProvider(this, manifest.bundleRoot)
reactNativeHostInternal =
TestAppReactNativeHost(this, reactNativeBundleNameProvider)
Expand Down

0 comments on commit 590f8f8

Please sign in to comment.