Skip to content

Commit

Permalink
[TurboModule] Enable TurboModule system in the Android App
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Feb 28, 2022
1 parent d8884c2 commit a80cea1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.facebook.react.TurboReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.config.ReactFeatureFlags;
import com.facebook.react.module.model.ReactModuleInfo;
import com.facebook.react.module.model.ReactModuleInfoProvider;
import com.facebook.soloader.SoLoader;
Expand Down Expand Up @@ -92,6 +93,7 @@ public ReactNativeHost getReactNativeHost() {

@Override
public void onCreate() {
ReactFeatureFlags.useTurboModules = true;
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
Expand Down

0 comments on commit a80cea1

Please sign in to comment.