Skip to content

Commit 6dd0eb8

Browse files
authored
fix: Migrate from TurboReactPackage to BaseReactPackage (#903)
TurboReactPackage is deprecated by RN <!-- Please provide enough information so that others can review your pull request. --> <!-- Keep pull requests small and focused on a single change. --> ### Summary See mrousavy/nitro#994 <!-- What existing problem does the pull request solve? Can you solve the issue with a different approach? --> ### Test plan <!-- List the steps with which we can test this change. Provide screenshots if this changes anything visual. -->
1 parent bc0ab23 commit 6dd0eb8

File tree

1 file changed

+2
-2
lines changed
  • packages/create-react-native-library/templates/nitro-module/android/src/main/java/com/margelo/nitro/{%- project.package_dir %}

1 file changed

+2
-2
lines changed

packages/create-react-native-library/templates/nitro-module/android/src/main/java/com/margelo/nitro/{%- project.package_dir %}/{%- project.name %}Package.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.margelo.nitro.<%- project.package %>
22

3-
import com.facebook.react.TurboReactPackage
3+
import com.facebook.react.BaseReactPackage
44
import com.facebook.react.bridge.NativeModule
55
import com.facebook.react.bridge.ReactApplicationContext
66
import com.facebook.react.module.model.ReactModuleInfoProvider
77

8-
class <%- project.name -%>Package : TurboReactPackage() {
8+
class <%- project.name -%>Package : BaseReactPackage() {
99
override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
1010
return null
1111
}

0 commit comments

Comments
 (0)