infoxicator / react-native-star-prnt

React-Native bridge to communicate with Star Micronics Bluetooth/LAN Printers
MIT License
67 stars 65 forks source link

Best practice to combine this repo with react-native-bluetooth-serial ? #43

Closed hasanej closed 2 years ago

hasanej commented 4 years ago

I need to combine this repo with this https://github.com/rusel1989/react-native-bluetooth-serial. That's because I have another bluetooth printer other than Star Micronics. I am new to React Native and I need suggestion on what is the best method and how the project structure should be when combined.

hunwalk commented 4 years ago

Sorry, we currently can not provide an example application|source at the moment, but i can assure you, that this library works at its best. You have to use your brain a bit and figure out on your own. But in my opinion the documentation is quite enough for the most basic actions. Please close this issue, as this is a personal matter, and not targeting any bugs nor recommending features or tweaks.

hasanej commented 4 years ago

Just try it with creating a fresh React Native project, it works like charm and pretty easy to implement. What I previously to do is combine it with this repository https://github.com/rusel1989/react-native-bluetooth-serial and it gets a little bit tricky. I'll just reopen this issue with other title as current title would be misleading. Anyway thank you for your suggestion @HunWalk

hunwalk commented 4 years ago

Yeah, because the lib itself already using the bluetooth module to establish connection between devices, sooo expect some weird stuff going on. Could you provide some logs or description or steps to reproduce the problem or an actual description about the stuff that goes on when you link this lib with the BluetoothSerial one? If you want to extend the bluetooth capabilities of this lib..you may have to create your own native module(not from scratch, just fork this and add your stuff) to be able to add some customizations.