UNPKG

react-native-video-recompression

Version:

A React Native library for intelligent video processing with native performance. Supports video analysis, quality-preserving format conversion, and smart recompression with customizable settings.

17 lines (16 loc) 614 B
import { NativeModules, Platform } from 'react-native'; const LINKING_ERROR = `The package 'react-native-video-recompression' doesn't seem to be linked. Make sure: \n\n` + Platform.select({ ios: "- You have run 'cd ios && pod install'\n", default: '', }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n'; const VideoRecompression = NativeModules.VideoRecompression ? NativeModules.VideoRecompression : new Proxy({}, { get() { throw new Error(LINKING_ERROR); }, }); export default VideoRecompression;