react-native-oco-landi-module
Version:
A React Native module for OCO Landi printer integration
17 lines (13 loc) • 328 B
JavaScript
// index.js
import { NativeModules, Platform } from "react-native";
const { OCOLandiModule } = NativeModules;
const Align = {
LEFT: 0,
CENTER: 1,
RIGHT: 2,
};
if (Platform.OS === "android" && !OCOLandiModule) {
throw new Error("OCOLandiModule not linked properly");
}
export { Align };
export default OCOLandiModule;