undefined 不是一个对象(评估'ImagePickerManager.showImagePicker') [英] undefined is not an object(evaluating 'ImagePickerManager.showImagePicker')
问题描述
我正在尝试使用 react-native-image-picker,但卡在这里,它总是显示如下图所示的错误:
I am trying to use react-native-image-picker, but stuck here, it always shows the error as on the below photo:
undefined 不是一个对象(评估 'ImagePickerManager.showImagePicker')
undefined is not an object(evaluating 'ImagePickerManager.showImagePicker')
有人遇到过这个问题吗?
Is there anyone who had this problem?
推荐答案
我也遇到过.几个小时后,我找到了解决方案.
I had met it too. After a few hours, I find a solution to it.
安装$npm install react-native-image-picker@latest --save自动安装React Native >= 0.29 $react-native 链接反应本机0.29 $rnpm 链接
Install $npm install react-native-image-picker@latest --save Automatic Installation React Native >= 0.29 $react-native link React Native < 0.29 $rnpm link
https://github.com/marcshilling/react-native-image-picker/blob/master/README.md此文档不是最新的.
使用上面的命令,你可以得到最新的.然后你可以按照 README.md 来使用它.这就是我解决它的方法.
Using the above command, you can get the latest one. Then you can follow the README.md to use it. That is my way to solve it.
祝你好运!
这篇关于undefined 不是一个对象(评估'ImagePickerManager.showImagePicker')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!