mobile-native-barcode-generator
Version:
Library to generate barcodes and qr codes natively using Kotlin and Swift, integrated with react native.
14 lines (13 loc) • 652 B
JavaScript
;
import { NativeModules, Platform } from "react-native";
const LINKING_ERROR = `The package 'mobile-native-barcode-generator' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
ios: "- You have run 'pod install'\n",
default: ""
}) + "- You rebuilt the app after installing the package\n" + "- You are not using Expo Go\n";
const MobileNativeBarcodeGenerator = NativeModules.MobileNativeBarcodeGenerator ? NativeModules.MobileNativeBarcodeGenerator : new Proxy({}, {
get() {
throw new Error(LINKING_ERROR);
}
});
export default MobileNativeBarcodeGenerator;
//# sourceMappingURL=MobileNativeBarcodeGenerator.js.map