expo-image-manipulator
Version:
Provides functions that let you manipulation images on the local file system, eg: resize, crop.
13 lines (12 loc) • 627 B
TypeScript
import { NativeModule } from 'expo';
import type { SharedRef } from 'expo-modules-core/types';
import type { ImageLoadOptions } from './ImageManipulator.types';
import ImageManipulatorContext from './web/ImageManipulatorContext.web';
import ImageManipulatorImageRef from './web/ImageManipulatorImageRef.web';
declare class ImageManipulator extends NativeModule {
Context: typeof ImageManipulatorContext;
Image: typeof ImageManipulatorImageRef;
manipulate(source: string | SharedRef<'image'>, options?: ImageLoadOptions): ImageManipulatorContext;
}
declare const _default: ImageManipulator;
export default _default;