Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

package com.facebook.react

import com.facebook.react.common.annotations.internal.LegacyArchitecture

/** Interface for the bridge to call for TTI start and end markers. */
@LegacyArchitecture
internal interface ReactPackageLogger {
fun startProcessPackage(): Unit

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,16 @@ private Task<Void> getOrCreateStartTask() {
ReactNativeFeatureFlags.useTurboModules(),
"useTurboModules FeatureFlag must be set to start ReactNative.");
}
if (ReactBuildConfig.UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE) {
Assertions.assertCondition(
!ReactNativeFeatureFlags.useFabricInterop(),
"useFabricInterop FeatureFlag must be false when"
+ " UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE == true.");
Assertions.assertCondition(
!ReactNativeFeatureFlags.useTurboModuleInterop(),
"useTurboModuleInterop FeatureFlag must be false when"
+ " UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE == true.");
}
mStartTask =
waitThenCallGetOrCreateReactInstanceTask()
.continueWithTask(
Expand Down