react-native-printer-imin 0.4.0 → 0.4.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.
@@ -623,6 +623,19 @@ public class PrinterIminModule extends ReactContextBaseJavaModule {
623
623
  }
624
624
  }
625
625
 
626
+ @ReactMethod
627
+ public void openCashBox(final Promise promise) {
628
+ try {
629
+ if (iminPrintUtils != null) {
630
+ iminPrintUtils.openCashBox();
631
+ }
632
+ promise.resolve(null);
633
+ } catch (Exception e) {
634
+ promise.reject("openCashBox_failed", e.getMessage());
635
+ }
636
+
637
+ }
638
+
626
639
  @ReactMethod
627
640
  public void setInitIminPrinter(boolean isDefault, final Promise promise) {
628
641
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-printer-imin",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Native Module For iMin Printer SDK Plugin",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",