Git Product home page Git Product logo

Comments (8)

senyangjiang avatar senyangjiang commented on July 24, 2024 1

I solved this problem by directly using ImageEditingManager.cropImage in Native modules from react-native.

import { NativeModules } from "react-native";
const { ImageEditingManager } = NativeModules;
ImageEditingManager.cropImage(
      imageUri,
      cropData,
      (res) => {
        setCroppedUri(res);
      },
      (e) => {
        console.log(e);
      }

ImageEditingManager.cropImage takes four arguments: imageuri, cropData(same structure), resolve func, reject func
I'm using react-native version 0.63

from react-native-image-editor.

fengmiaorxiaobai avatar fengmiaorxiaobai commented on July 24, 2024

i have the same problem.

from react-native-image-editor.

yutasb avatar yutasb commented on July 24, 2024

I have the same problem, too.

from react-native-image-editor.

rjtubera avatar rjtubera commented on July 24, 2024

Hi guys any update? I temporarily removed this snippet to make my app work.

from react-native-image-editor.

MrKernelPanic-dev avatar MrKernelPanic-dev commented on July 24, 2024

i have the same problem.

from react-native-image-editor.

senyangjiang avatar senyangjiang commented on July 24, 2024

Has anyone solved this yet? I have the same problem. It seems that cropImage calls RNCImageEditor.cropImage, and RNCImage is not defined.

from react-native-image-editor.

adamtsai1 avatar adamtsai1 commented on July 24, 2024

Two years later, same problem. Using the NativeModules ImageEditingManager does seem to work though (at least on iOS — haven't tried on Android yet), so thank you for providing that solution.

from react-native-image-editor.

retyui avatar retyui commented on July 24, 2024

Shouldn't be an issue if you are using the latest version

from react-native-image-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.