react-native-image-picker icon indicating copy to clipboard operation
react-native-image-picker copied to clipboard

undefined is not an object(evaluating 'ImagePickerManager.showImagePicker')

Open ywqian opened this issue 9 years ago • 10 comments

error:undefined is not an object(evaluating 'ImagePickerManager.showImagePicker')

devices: oppo R8007

ywqian avatar Dec 06 '16 01:12 ywqian

@ywqian How to solve error? I have encountered an error message

error:ExceptionsManager.js:63 Cannot read property 'showImagePicker' of undefined and: ExceptionsManager.js:71 Unhandled JS Exception: Cannot read property 'showImagePicker' of undefined

TrustDec avatar Dec 06 '16 04:12 TrustDec

Solutions: https://github.com/marcshilling/react-native-image-picker/issues/381

TrustDec avatar Dec 06 '16 04:12 TrustDec

ok, I alreay solve this problem.

ywqian avatar Dec 06 '16 04:12 ywqian

How do you resolve them? One of my errors

TrustDec avatar Dec 06 '16 04:12 TrustDec

first:execute the command: react-native link react-native-image-picker second: check directory android/app/build.gradle:compile project(':react-native-image-picker')

android/setting.gradle: include ':react-native-image-picker' project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android')

android/app/src/..../MainApplication image

then everything is ok! you may can see https://github.com/ivpusic/react-native-image-crop-picker, this repository is the same operation.

ywqian avatar Dec 06 '16 04:12 ywqian

Thank you very much for your answer. Solve this problem @ywqian

TrustDec avatar Dec 06 '16 06:12 TrustDec

@ywqian this worked for me :) Thank you

newosetroc avatar Apr 24 '17 21:04 newosetroc

In addition to @ywqian add this line also at the top import com.imagepicker.ImagePickerPackage;

yash2code avatar Sep 05 '17 15:09 yash2code

where is MainApplication.java inside react-native-image-picker/android/src ? I am using 0.26.7 version of react-native-image-picker.

dalipkumar703 avatar Nov 12 '17 06:11 dalipkumar703

first:execute the command: react-native link react-native-image-picker second: check directory android/app/build.gradle:compile project(':react-native-image-picker')

android/setting.gradle: include ':react-native-image-picker' project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android')

android/app/src/..../MainApplication

all are clear but same error

nzrsrk avatar Aug 28 '18 06:08 nzrsrk