@icedevml/react-native-host-card-emulation 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/NativeHCEModule.ts +3 -4
- package/package.json +1 -1
package/js/NativeHCEModule.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {TurboModule} from 'react-native';
|
|
2
|
-
import type {EventEmitter} from 'react-native/Libraries/Types/CodegenTypes';
|
|
1
|
+
import type {CodegenTypes, TurboModule} from 'react-native';
|
|
3
2
|
import {TurboModuleRegistry} from 'react-native';
|
|
4
3
|
|
|
5
4
|
export type HCEModuleEventType =
|
|
@@ -138,14 +137,14 @@ export interface Spec extends TurboModule {
|
|
|
138
137
|
/**
|
|
139
138
|
* Event handler for foreground HCE interactions.
|
|
140
139
|
*/
|
|
141
|
-
readonly onEvent: EventEmitter<HCEModuleEvent>;
|
|
140
|
+
readonly onEvent: CodegenTypes.EventEmitter<HCEModuleEvent>;
|
|
142
141
|
|
|
143
142
|
/**
|
|
144
143
|
* Event handler for background HCE interactions.
|
|
145
144
|
* NOTE: Don't subscribe to that handler directly, use wrapper hceBackground.ts:createBackgroundHCE.
|
|
146
145
|
* See demo app or README.md for example wrapper usage.
|
|
147
146
|
*/
|
|
148
|
-
readonly onBackgroundEvent: EventEmitter<HCEModuleBackgroundEvent>;
|
|
147
|
+
readonly onBackgroundEvent: CodegenTypes.EventEmitter<HCEModuleBackgroundEvent>;
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
export default TurboModuleRegistry.getEnforcing<Spec>(
|
package/package.json
CHANGED