@schhteam/react-native-brother-label
v1.0.1
Published
Brother Label native module for React Native / Expo
Maintainers
Readme
@schhteam/react-native-brother-label
Private React Native + Expo native module for Brother label printing on Android.
Install (local)
npm install ./packages/react-native-brother-labelConfigure Expo
Add the plugin to your Expo config:
{
"expo": {
"plugins": ["@schhteam/react-native-brother-label"]
}
}Then regenerate native code:
npx expo prebuild --platform android --cleanJS API
import { isAvailable, printLabel } from "@schhteam/react-native-brother-label";
const supported = await isAvailable();
await printLabel({
pdfPath: "/path/to/file.pdf",
macAddress: "AA:BB:CC:DD:EE:FF",
model: "QL_820NWB",
copies: 1,
labelWidthMm: 90,
labelHeightMm: 29
});