react-native-esc-pos-printer-chunyinli 4.5.2 → 4.5.3

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.
@@ -20,6 +20,7 @@ import com.facebook.react.bridge.ReactMethod;
20
20
  import com.facebook.react.bridge.ReadableArray;
21
21
  import com.facebook.react.bridge.ReadableMap;
22
22
  import com.facebook.react.common.build.ReactBuildConfig;
23
+ import com.facebook.react.modules.core.DeviceEventManagerModule;
23
24
  import java.util.Arrays;
24
25
  import java.util.HashSet;
25
26
  import java.util.Map;
@@ -30,8 +31,11 @@ import javax.annotation.Nullable;
30
31
  public abstract class NativeEscPosPrinterDiscoverySpec extends ReactContextBaseJavaModule{
31
32
  public static final String NAME = "EscPosPrinterDiscovery";
32
33
 
34
+ private final DeviceEventManagerModule.RCTDeviceEventEmitter mEventEmitterCallback;
35
+
33
36
  public NativeEscPosPrinterDiscoverySpec(ReactApplicationContext reactContext) {
34
37
  super(reactContext);
38
+ mEventEmitterCallback = reactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class);
35
39
  }
36
40
 
37
41
  @Override
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-esc-pos-printer-chunyinli",
3
- "version": "4.5.2",
3
+ "version": "4.5.3",
4
4
  "description": "An unofficial React Native library for printing on an EPSON TM printer with the Epson ePOS SDK for iOS and Epson ePOS SDK for Android",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",