diff --git a/android/app/src/main/java/com/rnnewarchitectureapp/MainApplication.java b/android/app/src/main/java/com/rnnewarchitectureapp/MainApplication.java index 225bbfe3..79da69bf 100644 --- a/android/app/src/main/java/com/rnnewarchitectureapp/MainApplication.java +++ b/android/app/src/main/java/com/rnnewarchitectureapp/MainApplication.java @@ -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; @@ -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());