UNPKG

react-native-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS

20 lines (16 loc) 743 B
import { type ConfigPlugin, createRunOncePlugin, withPlugins } from '@expo/config-plugins'; import { ScanbotConfigPlugin } from './pluginTypes'; import { withIOSCameraPermission } from './withIOSCameraPermission'; import { withLargeHeap } from './withLargeHeap'; import { withAssets } from './withOCRAssets'; import { withAndroidMavenURLs } from './withAndroidMavenURLs'; const pkg = require('../../package.json'); const withScanbotSDK: ConfigPlugin<ScanbotConfigPlugin> = (config, props = {}) => { return withPlugins(config, [ [withIOSCameraPermission, props], [withLargeHeap, props], [withAssets, props], [withAndroidMavenURLs, props], ]); }; export default createRunOncePlugin(withScanbotSDK, pkg.name, pkg.version);