UNPKG

@azzapp/react-native-skia-video

Version:
15 lines (14 loc) 800 B
"use strict"; import { NativeModules, Platform } from 'react-native'; // @ts-expect-error __turboModuleProxy is not yet added to the type definitions const isTurboModuleEnabled = global.__turboModuleProxy != null; const ReactNativeSkiaVideoModule = isTurboModuleEnabled ? require('./NativeReactNativeSkiaVideo').default : NativeModules.ReactNativeSkiaVideo; if (!ReactNativeSkiaVideoModule) { throw new Error(`The package '@azzapp/react-native-skia-video' 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'); } ReactNativeSkiaVideoModule.install(); export default global.RNSkiaVideo; //# sourceMappingURL=RNSkiaVideoModule.js.map