React-native-image-crop-picker: Error linking to ios with RN 0.52...?

Created on 28 Feb 2018  Â·  18Comments  Â·  Source: ivpusic/react-native-image-crop-picker

I get the error undefined is not an object evaluating '_reactNativeImageCropPicker' which looks to be a common issue related to issues with linking.

When I unlink I see this;

rnpm-install info Unlinking react-native-image-crop-picker ios dependency 
rnpm-install info Platform 'ios' module undefined has been successfully unlinked 
rnpm-install info Platform 'android' module react-native-image-crop-picker is not installed 

When I re-link I see this, which looks like it isn't repeating the linking process.

rnpm-install info Platform 'ios' module react-native-image-crop-picker is already linked 
rnpm-install info Linking react-native-image-crop-picker android dependency 
rnpm-install info Platform 'android' module react-native-image-crop-picker has been successfully linked 

So at the moment I feel a bit stuck on how to fix this install issue.

Key Libraries and versions:
"react": "16.2.0",
"react-native": "^0.52.0",
"react-native-image-crop-picker": "^0.19.3",
"expo": "25.0.0",
"npm" : 5.6.0
"node" : 9.6.1

Most helpful comment

expo image picker lacks features like.. setting the aspect ratio of the picked image on iOS. It lacks many other features as well..

All 18 comments

@bonbonio there is an update and a new install guide, suggest you try that and see if it fixed it

Using 0.20.0 and following all the install; I get the following error

undefined is not an object (evaluating _reactNativeImageCropPicker2.default.openPicker)

@bonbonio it means installation is not complete. Can you check discussion here https://github.com/ivpusic/react-native-image-crop-picker/issues/633 and try to unlink library as described first. After that follow every cocoapods step from readme, and it should be working.

Not sure how that thread helps beyond a rake through the installer.

Surely if it breaks in my fresh project it’ll be broken for all?

on fresh new project if you follow all steps, and if they run without errors, it will run and you wont get mentioned issue. I tried multiple times to do it without any problems.

Well I had no podfile etc, any potential issues with expo etc? Is there.
Way to remove all link traces etc?

On Thu, 8 Mar 2018 at 00:16, Ivan Pusic notifications@github.com wrote:

I got it working but I had to uninstall it and make sure it was unlinked then reinstalled it and make sure not to run react-native link

ah, you are using expo. I never tried it with expo, so that combination could be an issue.

Is it likely to be that? I am pretty new to React-native so I dont have the
knowledge to dig very deep

On 8 March 2018 at 13:13, Ivan Pusic notifications@github.com wrote:

ah, you are using expo. I never tried it with expo, so that combination
could be an issue.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ivpusic/react-native-image-crop-picker/issues/627#issuecomment-371426883,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJme1iylEqFTdkZVlGUambvnXJX9kKJ_ks5tcPYtgaJpZM4SWssV
.

--
Regards,

Darryl Haydn Jones

Managing Director | Bonbon Group Ltd

yes, very likely

Where does that leave me/anyone wanting to use this with Expo?

On 8 March 2018 at 16:07, Ivan Pusic notifications@github.com wrote:

yes, very likely

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ivpusic/react-native-image-crop-picker/issues/627#issuecomment-371468812,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJme1ocvs5ZWI9z7f82IXuSyH-TYaFD5ks5tcR7lgaJpZM4SWssV
.

--
Regards,

Darryl Haydn Jones

Managing Director | Bonbon Group Ltd

I have no experience with expo, and currently I have no plans of investigating possible solutions for expo usecase, so I suggest that you check other similar libraries.

@ivpusic so the same situation came to me ,what should i do? choose another lib or ?

Can someone offer an explanation as to why this great looking library won't work with Expo? And how we can find a solution?

Just use the Expo Image Picker @xlcrr @haiifeng

expo image picker lacks features like.. setting the aspect ratio of the picked image on iOS. It lacks many others features as well compared to this plugin

expo image picker lacks features like.. setting the aspect ratio of the picked image on iOS. It lacks many other features as well..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sergiulucaci picture sergiulucaci  Â·  3Comments

equesteo picture equesteo  Â·  3Comments

aterribili picture aterribili  Â·  3Comments

phantom1299 picture phantom1299  Â·  3Comments

tximpa91 picture tximpa91  Â·  3Comments