-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
When trying to connect and print our react native app crashes with the following error caught.
NSInternalInconsistencyExceptionfacebook::react::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>)
Invalid parameter not satisfying: characteristic != nil
Seems that characteristic != nil is not caught/handled correctly.
RNZebraBluetoothPrinter.connectDevice(this.state.zebra_printer.address)
.then((result) => {
if (!result) {
Alert.alert('Could not connect to printer. Please check printer connection.')
}
RNZebraBluetoothPrinter.print(zpl)
.then((result) => {
if (!result) {
Alert.alert('Printing failed. Please check printer connection.')
}
})
.catch(e => console.log(e.message))
})
.catch(e => console.log(e))
Metadata
Metadata
Assignees
Labels
No labels