react-native-star-prnt 1.2.1
Install from the command line:
Learn more about npm packages
$ npm install @owner/react-native-star-prnt@1.2.1
Install via package.json:
"@owner/react-native-star-prnt": "1.2.1"
About this version
react-native bridge for Star micronics printers.
Ionic/Cordova Version ➜ here
$ npm install react-native-star-prnt --save
$ react-native link react-native-star-prnt
-
In XCode, go to Build Phases, Link Binary with Libraries and Add the following frameworks:
- Go to
node_modules
➜react-native-star-prnt
➜ios
➜Frameworks
and addStarIO.framework
andStarIO_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/Frameworks
to 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 0
tojp.star-m.starpro
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
Details
- react-native-star-prnt
- owner
- almost 3 years ago
- MIT
- 1 dependencies
Assets
- react-native-star-prnt-1.2.1-npm.tgz
Download activity
- Total downloads 1
- Last 30 days 0
- Last week 0
- Today 0