diff --git a/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt b/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt index a06841d76d8204..2c5bea4099c53f 100644 --- a/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt +++ b/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt @@ -38,10 +38,7 @@ import org.gradle.internal.jvm.Jvm class ReactPlugin : Plugin { override fun apply(project: Project) { checkJvmVersion(project) - val extension = - project.rootProject.extensions.findByType(ReactExtension::class.java) - ?: project.rootProject.extensions.create("react", ReactExtension::class.java, project) - + val extension = project.extensions.create("react", ReactExtension::class.java, project) checkIfNewArchFlagIsSet(project, extension) // We register a private extension on the rootProject so that project wide configs