7.4.0 • Published 1 year ago
@axelmarciano/react-native-star-prnt v7.4.0
react-native-star-prnt
react-native bridge for Star micronics printers.
Ionic/Cordova Version ➜ here
Installation
$ npm install react-native-star-prnt --save
Link
$ react-native link react-native-star-prnt
iOS Configuration
In XCode, go to Build Phases, Link Binary with Libraries and Add the following frameworks:
- Go to
node_modules➜react-native-star-prnt➜ios➜Frameworksand addStarIO.frameworkandStarIO_Extension.framework - Add the
CoreBluetooth.framework - Add the
ExternalAccessory.framework
- Go to
Go to Build Settings ➜ Search Paths and Add
$(PROJECT_DIR)/../node_modules/react-native-star-prnt/ios/Frameworksto Framework Search Paths
For Bluetooth printers:
- Click on the information property list file (default : “Info.plist”).
- Add the “Supported external accessory protocols” Key.
- Click the triangle of this key and set the value for the
Item 0tojp.star-m.starpro
Usage
import { StarPRNT } from 'react-native-star-prnt';
async function portDiscovery() {
try {
let printers = await StarPRNT.portDiscovery('All');
console.log(printers);
} catch (e) {
console.error(e);
}
}Take a look at the Documentation
7.4.0
1 year ago
7.3.0
1 year ago
7.2.0
1 year ago
7.1.0
1 year ago
7.0.0
1 year ago
6.4.0
1 year ago
6.3.0
1 year ago
6.2.0
1 year ago
6.1.0
1 year ago
6.0.3
1 year ago
6.0.2
1 year ago
6.0.1
1 year ago
6.0.0
1 year ago
5.0.4
2 years ago
5.0.3
2 years ago
5.0.2
2 years ago
5.0.1
2 years ago
5.0.0
2 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago