undefined is not an object(evaluating 'ImagePickerManager.showImagePicker')
error:undefined is not an object(evaluating 'ImagePickerManager.showImagePicker')
devices: oppo R8007
@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
Solutions: https://github.com/marcshilling/react-native-image-picker/issues/381
ok, I alreay solve this problem.
How do you resolve them? One of my errors
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

then everything is ok! you may can see https://github.com/ivpusic/react-native-image-crop-picker, this repository is the same operation.
Thank you very much for your answer. Solve this problem @ywqian
@ywqian this worked for me :) Thank you
In addition to @ywqian add this line also at the top import com.imagepicker.ImagePickerPackage;
where is MainApplication.java inside react-native-image-picker/android/src ? I am using 0.26.7 version of react-native-image-picker.
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