React-Native printer module for PAX POS devices
yarn add react-native-pax-printerDownload 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";
...
awaitprintString('String to print');awaitprintStrings(['String one','String two','String 3']);
...MIT