Comments (8)
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.
i have the same problem.
from react-native-image-editor.
I have the same problem, too.
from react-native-image-editor.
Hi guys any update? I temporarily removed this snippet to make my app work.
from react-native-image-editor.
i have the same problem.
from react-native-image-editor.
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.
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.
Shouldn't be an issue if you are using the latest version
from react-native-image-editor.
Related Issues (20)
- Please publish the latest build from Github, onto npm! HOT 2
- iOS compilation failures after Expo SDK 44/RN 0.64.3 upgrade HOT 3
- Why i can't install this library? HOT 6
- I am trying to use Image editor library of react native but whenever I install this library I am unable to make my build to start my app locally can you help me ?? HOT 2
- Inconsistent handling of EXIF between Android and iOS HOT 5
- run-ios fail HOT 9
- Not compatible with react 18 HOT 4
- Is this discontinued? HOT 1
- remove jcenter for android build.gradle HOT 1
- call to undeclared function 'RCTTransformFromTargetRect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] CGAffineTransform transform = RCTTransformFromTargetRect(image.size, targetRect); HOT 1
- [4.x] Release plan HOT 1
- Prompt error that ' Error: Requiring module "src/component/index.tsx", which threw an exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCImageEditor' could not be found. Verify that a module by this name is registered in the native binary' in IOS
- getting error in some android devices when cropping the images HOT 4
- Prompt error that ' Error: Requiring module "src/component/index.tsx", which threw an exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCImageEditor' could not be found. Verify that a module by this name is registered in the native binary'only happen in IOS HOT 4
- Incorrect scaling on Android HOT 6
- Offset not correct in some Android devices HOT 10
- Library support for New Architecture + Bridgeless HOT 2
- Prompt error that ' Error: Requiring module "src/component/index.tsx", which threw an exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCImageEditor' could not be found. Verify that a module by this name is registered in the native binary'only happen in IOS HOT 3
- not working with react-native-image-crop-picker, pickedImage.path or pickedImage.sourceURL
- install error usning npm@7 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-image-editor.