HeligPfleigh / react-native-thermal-receipt-printer

A RN library for thermal printer
163 stars 103 forks source link

fix(RNNetPrinterModule): ios connectPrinter function arguments nonnul… #58

Closed hinodi closed 3 years ago

hinodi commented 3 years ago

Summary

On version 1.1.5 we have some small issue with NetPrinter.connectPrinter function on ios

Error: Argument 1 (NSNumber) of RNNetPrinter.connectPrinter has unspecified nullability but React requires that all NSNumber arguments are explicitly marked as ``nonnull`` to ensure compatibility with Android.

Simulator Screen Shot - iPhone 11 - 2021-05-25 at 19 58 26

Environment


System:
    OS: macOS Big Sur 11.1
    CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
Binaries:
    node: v12.22.1
    npm: 6.14.12
    watchman: 4.9.0
SDKs:
    iOS SDK:
      Platforms: iOS 14.4
IDEs:
    Xcode: 12.4 (12D4e)
npmPackages:
    react: 16.13.1
    react-native: 0.63.4
    react-native-thermal-receipt-printer: 1.1.5