JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 184
  • Score
    100M100P100Q64227F

Module to printer in a Datecs bluetooth Printer

Package Exports

  • react-native-bluetooth-datecs-printer
  • react-native-bluetooth-datecs-printer/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-bluetooth-datecs-printer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-bluetooth-datecs-printer

Getting started

$npm install react-native-bluetooth-datecs-printer --save

Mostly automatic installation

$ react-native link react-native-datecs-connector

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainApplication.java
  • Add import br.com.masfe.rnbluetoothdatecsprinter.RNBluetoothDatecsPrinterPackage to the imports at the top of the file
  1. Append the following lines to android/settings.gradle:

    include ':react-native-bluetooth-datecs-printer'
    project(':react-native-bluetooth-datecs-printer').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-bluetooth-datecs-printer/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:

      implementation project(':react-native-bluetooth-datecs-printer')
  3. Insert the following lines inside the android/app/serc/main/AndroidManifest.xml

      <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
      <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
      <uses-permission android:name="android.permission.BLUETOOTH" />
      <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
      <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
      <uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
    

Usage

import { RNBluetoothDatecsPrinter } from 'react-native-bluetooth-datecs-printer';