React-Native printer module for PAX POS devices
yarn add react-native-pax-printer
Download the file libDeviceConfig.so and place it in android/app/src/main/jniLibs/armeabi-v7a
Open android/app/build.gradle
and add the armeabi-v7a filter for the ndk in defaultConfig
...
android {
...
defaultConfig {
...
ndk {
abiFilters "armeabi-v7a"
}
}
}
import {printString} from "react-native-pax-printer";
...
await printString('String to print');
await printStrings(['String one', 'String two', 'String 3']);
...
MIT