undefined 不是一个对象(评估'ImagePickerManager.showImagePicker') [英] undefined is not an object(evaluating 'ImagePickerManager.showImagePicker')

查看:51
本文介绍了undefined 不是一个对象(评估'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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆