How to use the react-native-photo-manipulator.crop function in react-native-photo-manipulator

To help you get started, we’ve selected a few react-native-photo-manipulator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github guhungry / react-native-photo-manipulator / example / app / example / ExampleCrop.tsx View on Github external
const operation = async () => {
      setCrop(await PhotoManipulator.crop(IMAGE, { x: 400, y: 200, width: 300, height: 200 }));
      setResize(await PhotoManipulator.crop(IMAGE, { x: 400, y: 200, width: 300, height: 200 }, { width: 60, height: 40 }))
      setCropPng(await PhotoManipulator.crop(IMAGE, { x: 400, y: 200, width: 300, height: 200 }));
    };

react-native-photo-manipulator

React Native Image Processing API to edit photo programmatically for Android and iOS.

MIT
Latest version published 6 days ago

Package Health Score

81 / 100
Full package analysis