1.2.15 • Published 3 months ago

react-native-star-prnt-bitmap-fix v1.2.15

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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

  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

1.2.15

3 months ago

1.2.14

8 months ago

1.2.8

9 months ago

1.2.7

12 months ago

1.2.6

12 months ago

1.2.5

12 months ago

1.2.4

12 months ago

1.2.3

12 months ago

1.2.9

9 months ago

1.2.12

9 months ago

1.2.13

9 months ago

1.2.10

9 months ago

1.2.11

9 months ago

1.2.2

12 months ago

1.2.1

1 year ago

1.2.0

1 year ago