Skip to content

devaccent/react-native-pax-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-pax-printer

React-Native printer module for PAX POS devices

Installation

Step 1

yarn add react-native-pax-printer

Step 2

Download the file libDeviceConfig.so and place it in android/app/src/main/jniLibs/armeabi-v7a

Step 3

Open android/app/build.gradle and add the armeabi-v7a filter for the ndk in defaultConfig

...
android {
    ...
    defaultConfig {
        ...
        ndk {
            abiFilters "armeabi-v7a"
        }
    }
}

Printing

import {printString} from "react-native-pax-printer";

...
await printString('String to print');
await printStrings(['String one', 'String two', 'String 3']);
...

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published