Skip to content

Commit

Permalink
fix: fix miss register module
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Dec 31, 2024
1 parent 4517bb9 commit 0eb9165
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions android/src/main/java/com/tscprinter/TscPrinterPackage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ class TscPrinterPackage : BaseReactPackage() {
override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
return ReactModuleInfoProvider {
val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
moduleInfos[TscCommonModule.NAME] = ReactModuleInfo(
TscCommonModule.NAME,
TscCommonModule.NAME,
false, // canOverrideExistingModule
false, // needsEagerInit
true, // hasConstants
false, // isCxxModule
true // isTurboModule
)
moduleInfos[TscUsbModule.NAME] = ReactModuleInfo(
TscUsbModule.NAME,
TscUsbModule.NAME,
Expand Down

0 comments on commit 0eb9165

Please sign in to comment.