react-native-print | Print documents using React Native | Document Editor library
kandi X-RAY | react-native-print Summary
kandi X-RAY | react-native-print Summary
Print documents using React Native
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-native-print
react-native-print Key Features
react-native-print Examples and Code Snippets
Community Discussions
Trending Discussions on react-native-print
QUESTION
I've been looking into different API/SDKs that would be best and easiest to integrate with my React Native iPhone app. This is an internal employee app, that once a form is submitted I would like to automatically print out a label from a thermal printer (e.g. Brother QL1110NWB).
Some options I found are:
React Native:
Brother SDK:
Apple AirPrint:
Does anyone have experience with any of these API/SDKs and can recommend best method for easy integration and be able to print directly without interaction?
Thank you!
...ANSWER
Answered 2021-May-17 at 14:08If you can dictate the hardware to make sure it is compatible, then the Brother SDK will have the easiest integration and be transparent to the user.
Apple restricts Bluetooth Classic devices from connecting to iOS unless they are MFi certified, which adds to the price but enables the External Accessory Framework at the OS level. Device manufacturers can then sell a printer that is 'iOS certified' like the Brother QL1110NWB and provide the SDK to use it.
How to use bluetooth classic instead of le
You would need to write a React Native binding for each target device family to use the SDK's OS specific libraries. Brother has an iOS, Android and Xamarin SDK available, but I don't see one for React, so you would need to wrap their iOS SDK with hooks to invoke your print on demand. Before you start, contact Brother support or your sales rep, because they may be working on React Native SDK, or your organization may have enough buying power to request one. Either way, it's a good practice to make this an interface at the base React level so that new printers or platforms can be added just by implementing custom native device adapters.
QUESTION
I’m working on a project where I need to establish connection to printer with ESC-POS. Project is in react native and I currently test on Android emulator. I’ve found package that would do what I need (https://github.com/leesiongchan/react-native-esc-pos) but when I try to build an app it gives over 330 errors like:
Duplicate class org.junit.runners.model.MultipleFailureException found in modules escposjava-1.0-SNAPSHOT.jar (escposjava-1.0-SNAPSHOT.jar) and junit-4.12.jar (junit:junit:4.12)`
Those errors occur for task :app:mergeDebugJavaResource and the messages are:
...ANSWER
Answered 2020-Sep-14 at 13:49I kept searching other questions related to android and finally found this:
Duplicate Hamcrest and JUnit classes after updating Gradle and Android Studio to 3.5
So basically all I did was to add to build.gradle (:app)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-print
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page