Git Product home page Git Product logo

Comments (15)

Trancever avatar Trancever commented on July 24, 2024 4

The fix is included into v2.0.2. Let me know if it works for you!

from react-native-image-editor.

Trancever avatar Trancever commented on July 24, 2024 1

@kevincantstop I am pretty sure you're using v1 of image-editor. Can you try v2.0.1 ? We no longer use image-store under the hood.

from react-native-image-editor.

tuledev avatar tuledev commented on July 24, 2024 1

I'm getting the same error.

from react-native-image-editor.

kevincantstop avatar kevincantstop commented on July 24, 2024

I think ImageEditor now is a built-in component. You can simply import ImageEditor from react
https://facebook.github.io/react-native/docs/imageeditor

e.g

import { ImageEditor } from 'react-native'

from react-native-image-editor.

Trancever avatar Trancever commented on July 24, 2024

@kevincantstop It is, but it's going to be removed soon. This library should be used as a replacement.

from react-native-image-editor.

Trancever avatar Trancever commented on July 24, 2024

@adamhari Do you still have an issue?

from react-native-image-editor.

kevincantstop avatar kevincantstop commented on July 24, 2024

@Trancever I yarn add this repo and the issue still exists

from react-native-image-editor.

adamhari avatar adamhari commented on July 24, 2024

@adamhari Do you still have an issue?

yes

from react-native-image-editor.

kevincantstop avatar kevincantstop commented on July 24, 2024

Also there's another problem on iOS, if I call ImageEditor.cropImage, it says:

no such file or directory, open 'rct-image-store//0' so it causes cropping process failure. I have already added perms to plist.

<key>NSPhotoLibraryUsageDescription</key> <string>Photo Library Usage Is Required</string> <key>NSPhotoLibraryAddUsageDescription</key> <string>Photo Library Addition Is Required</string>

I'm new to iOS, any suggestions could help. :) Thanks in advance.

react-native: 0.60.3

from react-native-image-editor.

acro5piano avatar acro5piano commented on July 24, 2024

For me the following patch works.

diff --git a/node_modules/@react-native-community/image-editor/ios/RNCImageEditor.xcodeproj/project.pbxproj b/node_modules/@react-native-community/image-editor/ios/RNCImageEditor.xcodeproj/project.pbxproj
index 9e121f3..8336d35 100755
--- a/node_modules/@react-native-community/image-editor/ios/RNCImageEditor.xcodeproj/project.pbxproj
+++ b/node_modules/@react-native-community/image-editor/ios/RNCImageEditor.xcodeproj/project.pbxproj
@@ -220,6 +220,7 @@
 					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
 					"$(SRCROOT)/../../../React/**",
 					"$(SRCROOT)/../../react-native/React/**",
+					"$(SRCROOT)/../../../react-native/Libraries/**",
 				);
 				LIBRARY_SEARCH_PATHS = "$(inherited)";
 				OTHER_LDFLAGS = "-ObjC";
@@ -236,6 +237,7 @@
 					/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
 					"$(SRCROOT)/../../../React/**",
 					"$(SRCROOT)/../../react-native/React/**",
+					"$(SRCROOT)/../../../react-native/Libraries/**",
 				);
 				LIBRARY_SEARCH_PATHS = "$(inherited)";
 				OTHER_LDFLAGS = "-ObjC";

from react-native-image-editor.

Trancever avatar Trancever commented on July 24, 2024

@adamhari Can you provide repo that reproduces issue? I tried same version of React-Native + manual link and it worked fine.

from react-native-image-editor.

RadiRS avatar RadiRS commented on July 24, 2024

has any one fix this issue ?

from react-native-image-editor.

Trancever avatar Trancever commented on July 24, 2024

@RadiRS If you still experience the issue can you write what version of react-native, image-editor do you use and how do you link them?

from react-native-image-editor.

adamhari avatar adamhari commented on July 24, 2024

@Trancever [email protected], [email protected]. Can't provide a reproducible repo at the moment, will try to find time this weekend

from react-native-image-editor.

asrytis avatar asrytis commented on July 24, 2024

Same here. The lib is linked manually, ie. not using Cocoa Pods. [email protected], [email protected]

Edit: fixed by adding the following to RNCImageEditor.xcodeproj header search paths:
$(SRCROOT)/../../../react-native/Libraries/Image

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.