react-native-nfc-manager 4.0.0-beta.8 → 4.0.0-beta.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"NativeNfcManager.js","sourceRoot":"","sources":["../../specs/NativeNfcManager.ts"],"names":[],"mappings":";;AACA,+CAAiD;AA4FjD,kBAAe,kCAAmB,CAAC,YAAY,CAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"NativeNfcManager.js","sourceRoot":"","sources":["../../specs/NativeNfcManager.ts"],"names":[],"mappings":";;AAEA,+CAAiD;AA4FjD,kBAAe,kCAAmB,CAAC,YAAY,CAAO,YAAY,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nfc-manager",
3
- "version": "4.0.0-beta.8",
3
+ "version": "4.0.0-beta.9",
4
4
  "description": "A NFC module for react native.",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "index.d.ts",
@@ -1,4 +1,5 @@
1
- import type {CodegenTypes, TurboModule} from 'react-native';
1
+ import type {TurboModule} from 'react-native';
2
+ import type {EventEmitter} from 'react-native/Libraries/Types/CodegenTypes';
2
3
  import {TurboModuleRegistry} from 'react-native';
3
4
 
4
5
  export type SessionClosedEvent = {
@@ -10,10 +11,10 @@ export type StateChangedEvent = {
10
11
  };
11
12
 
12
13
  export interface Spec extends TurboModule {
13
- readonly onDiscoverTag: CodegenTypes.EventEmitter<Object>;
14
- readonly onDiscoverBackgroundTag: CodegenTypes.EventEmitter<Object>;
15
- readonly onSessionClosed: CodegenTypes.EventEmitter<SessionClosedEvent>;
16
- readonly onStateChanged: CodegenTypes.EventEmitter<StateChangedEvent>;
14
+ readonly onDiscoverTag: EventEmitter<Object>;
15
+ readonly onDiscoverBackgroundTag: EventEmitter<Object>;
16
+ readonly onSessionClosed: EventEmitter<SessionClosedEvent>;
17
+ readonly onStateChanged: EventEmitter<StateChangedEvent>;
17
18
  isSupported(tech: string, callback: (err?: string, resp?: boolean) => void): void;
18
19
  isEnabled(callback: (err?: string, resp?: boolean) => void): void;
19
20
  start(callback: (err?: string) => void): void;