@popmenu/star-print
TypeScript icon, indicating that this package has built-in type declarations

1.3.6 • Public • Published

react-native-star-prnt

react-native bridge for Star micronics printers.

Ionic/Cordova Version ➜ here

Installation

$ npm install react-native-star-prnt --save

$ react-native link react-native-star-prnt

iOS Configuration

  1. In XCode, go to Build Phases, Link Binary with Libraries and Add the following frameworks:

    • Go to node_modulesreact-native-star-prntiosFrameworks and add StarIO.framework and StarIO_Extension.framework
    • Add the CoreBluetooth.framework
    • Add the ExternalAccessory.framework
  2. 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:

  1. Click on the information property list file (default : “Info.plist”).
  2. Add the “Supported external accessory protocols” Key.
  3. Click the triangle of this key and set the value for the Item 0 to jp.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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.67latest
1.3.6-rc20rc

Version History

VersionDownloads (Last 7 Days)Published
1.3.67
1.3.6-rc20
1.3.6-rc10
1.3.57
1.3.40
1.3.30
1.3.20
1.3.2-rc.10
1.3.11
1.3.00

Package Sidebar

Install

npm i @popmenu/star-print

Weekly Downloads

15

Version

1.3.6

License

MIT

Unpacked Size

67 MB

Total Files

100

Last publish

Collaborators

  • brandonbrown5
  • matthew.paravati
  • bantug_pop