Call SoLoader.init in MainApplication#onCreate
Summary: Fixes #10352. Closes https://github.com/facebook/react-native/pull/10724 Differential Revision: D4126371 fbshipit-source-id: e1765e2d2a3ff80a962f1db6bdc9e90d797d3ab6
This commit is contained in:
parent
227f1b0ea8
commit
0907ef6689
|
@ -8,6 +8,7 @@ import com.facebook.react.ReactInstanceManager;
|
|||
import com.facebook.react.ReactNativeHost;
|
||||
import com.facebook.react.ReactPackage;
|
||||
import com.facebook.react.shell.MainReactPackage;
|
||||
import com.facebook.soloader.SoLoader;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
@ -30,6 +31,12 @@ public class MainApplication extends Application implements ReactApplication {
|
|||
|
||||
@Override
|
||||
public ReactNativeHost getReactNativeHost() {
|
||||
return mReactNativeHost;
|
||||
return mReactNativeHost;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
SoLoader.init(this, /* native exopackage */ false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue