Skip to content

Commit

Permalink
fix: move from TurboReactPackage to BaseReactPackage (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 authored Dec 4, 2024
1 parent 6628b2a commit bcccda5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit bcccda5

Please sign in to comment.