mainam-react-native-blep
v2.0.8
Published
TODO
Downloads
1
Readme
mainam-react-native-blep
Getting started
$ npm install mainam-react-native-blep --save
Mostly automatic installation
$ react-native link mainam-react-native-blep
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜mainam-react-native-blep
and addBluetoothPrinter.xcodeproj
- In XCode, in the project navigator, select your project. Add
libBluetoothPrinter.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.reactlibrary.BluetoothPrinterPackage;
to the imports at the top of the file - Add
new BluetoothPrinterPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':mainam-react-native-blep' project(':mainam-react-native-blep').projectDir = new File(rootProject.projectDir, '../node_modules/mainam-react-native-blep/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':mainam-react-native-blep')
Usage
import BluetoothPrinter from 'mainam-react-native-blep';
// TODO: What to do with the module?
BluetoothPrinter;