React-native-image-crop-picker: cannot read property openPicker of undefined for android

Created on 22 Sep 2017  路  4Comments  路  Source: ivpusic/react-native-image-crop-picker

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.16.1
  • react-native v0.46

Platform

Tell us to which platform this issue is related

  • Android

Expected behaviour

Gallery would have got opened so that i could select multiple images

Actual behaviour

cannot read property openPicker of undefined

Steps to reproduce

  1. install the plugin

  2. follow the steps for setting up for android

  3. press on the button u called this function

Attachments

screenshot_1506097781

// stacktrace or any other useful debug info

Most helpful comment

this usually means that installation somewhere failed. Can you open your MainActivity.java class and check if image picker module is imported correctly? If not, that means react-native link step failed.

All 4 comments

this usually means that installation somewhere failed. Can you open your MainActivity.java class and check if image picker module is imported correctly? If not, that means react-native link step failed.

I'mFacing the same issue, though react-native link says already linked

@pulkitkkr i resolved this issue , by following the code as done in https://github.com/ivpusic/react-native-image-crop-picker/tree/master/example/android . Please go through , build.gradle, settings.gradle , mainApplication.java and all other files , to make this plugin work as desired .
hence i am closing this issue

After linking It worked perfectly. Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cwRichardKim picture cwRichardKim  路  3Comments

JodiWarren picture JodiWarren  路  3Comments

zhangjunhou picture zhangjunhou  路  3Comments

xuchao321 picture xuchao321  路  3Comments

DISKONEKTeD picture DISKONEKTeD  路  3Comments