Skip to content

masfelix/react-native-bluetooth-datecs-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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';

About

Module to printer in a Datecs bluetooth Printer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published