From ea983f2464fe86fa4d367cbe67b11ab0aadb90d2 Mon Sep 17 00:00:00 2001 From: David Angulo Date: Wed, 4 Dec 2024 19:12:14 +0800 Subject: [PATCH] chore: migrate TurboReactPackage to BaseReactPackage --- .../{%- project.package_dir %}/{%- project.name %}Package.kt | 4 ++-- .../{%- project.package_dir %}/{%- project.name %}Package.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/create-react-native-library/templates/kotlin-library-mixed/android/src/main/java/com/{%- project.package_dir %}/{%- project.name %}Package.kt b/packages/create-react-native-library/templates/kotlin-library-mixed/android/src/main/java/com/{%- project.package_dir %}/{%- project.name %}Package.kt index 93368013b..97365876b 100644 --- a/packages/create-react-native-library/templates/kotlin-library-mixed/android/src/main/java/com/{%- project.package_dir %}/{%- project.name %}Package.kt +++ b/packages/create-react-native-library/templates/kotlin-library-mixed/android/src/main/java/com/{%- project.package_dir %}/{%- project.name %}Package.kt @@ -1,13 +1,13 @@ package com.<%- project.package %> -import com.facebook.react.TurboReactPackage +import com.facebook.react.BaseReactPackage import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.bridge.NativeModule import com.facebook.react.module.model.ReactModuleInfoProvider import com.facebook.react.module.model.ReactModuleInfo import java.util.HashMap -class <%- project.name -%>Package : TurboReactPackage() { +class <%- project.name -%>Package : BaseReactPackage() { override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? { return if (name == <%- project.name -%>Module.NAME) { <%- project.name -%>Module(reactContext) diff --git a/packages/create-react-native-library/templates/kotlin-library-new/android/src/main/java/com/{%- project.package_dir %}/{%- project.name %}Package.kt b/packages/create-react-native-library/templates/kotlin-library-new/android/src/main/java/com/{%- project.package_dir %}/{%- project.name %}Package.kt index 599cf307c..7ed1fe4bb 100644 --- a/packages/create-react-native-library/templates/kotlin-library-new/android/src/main/java/com/{%- project.package_dir %}/{%- project.name %}Package.kt +++ b/packages/create-react-native-library/templates/kotlin-library-new/android/src/main/java/com/{%- project.package_dir %}/{%- project.name %}Package.kt @@ -1,13 +1,13 @@ package com.<%- project.package %> -import com.facebook.react.TurboReactPackage +import com.facebook.react.BaseReactPackage import com.facebook.react.bridge.NativeModule import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.module.model.ReactModuleInfo import com.facebook.react.module.model.ReactModuleInfoProvider import java.util.HashMap -class <%- project.name -%>Package : TurboReactPackage() { +class <%- project.name -%>Package : BaseReactPackage() { override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? { return if (name == <%- project.name -%>Module.NAME) { <%- project.name -%>Module(reactContext)