Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo实例无法实现拍照功能 #3

Closed
lyichao opened this issue Nov 27, 2017 · 16 comments
Closed

Demo实例无法实现拍照功能 #3

lyichao opened this issue Nov 27, 2017 · 16 comments

Comments

@lyichao
Copy link

lyichao commented Nov 27, 2017

ImagePickerExample实例选择拍摄就出现闪退的情况

@syanbo
Copy link
Owner

syanbo commented Nov 27, 2017

请问什么环境下,需要详细一点详细,闪退错误日志是什么

@lyichao
Copy link
Author

lyichao commented Nov 27, 2017

"react": "16.0.0-beta.5",
"react-native": "0.49.3",
"react-native-syan-image-picker": "^0.0.3"点击拍摄后Demo直接闪退,日志没有被记录到原因

@syanbo
Copy link
Owner

syanbo commented Nov 27, 2017

Android 还是 iOS

@lyichao
Copy link
Author

lyichao commented Nov 27, 2017

Android ,Windows环境

@syanbo
Copy link
Owner

syanbo commented Nov 27, 2017

真机吗

@lyichao
Copy link
Author

lyichao commented Nov 27, 2017

是的,nexus5和小米note

@zhengyeye
Copy link

华为也掉不出相机。白屏闪退
"react": "16.0.0-beta.5",
"react-native": "0.49.3"
"react-native-syan-image-picker": "0.0.5",

@syanbo
Copy link
Owner

syanbo commented Nov 28, 2017

@zhengyeye 可以提供一下错误日志吗?连接USB在as里查看

@zhengyeye
Copy link

早上看到了,android6以下可以正常调出相机,使用正常,6以上的系统就会出现这种问题,你用6以上的系统手机试试看。没有错误日志,是直接退出的~

@syanbo
Copy link
Owner

syanbo commented Nov 28, 2017

加一下权限 @zhengyeye @1994Lee

@PangYiMing
Copy link

android 6以上是动态申请权限,记得使用插件前申请,后续应该会添加权限申请。

@vipstone
Copy link

vipstone commented Nov 29, 2017

大兄弟,安卓6+照相的的问题,不止是动态赋值权限的问题,即使使用前赋值了权限,依然会有问题的。你使用的PictureSelector为2.1.1的,要更新成最新版2.1.7的,然后把PictureSelector.create(currentActivity)配置换成2.1.7的配置之后,就好了,我给你贡献点代码吧.

@syanbo
Copy link
Owner

syanbo commented Nov 29, 2017

@vipstone 非常感谢,晚点测试一下发布V0.0.6

@syanbo
Copy link
Owner

syanbo commented Nov 30, 2017

@zhengyeye npm上版本已经是0.0.7 你也可以直接使用git链接npm

@giantss
Copy link

giantss commented Dec 7, 2017

@vipstone #9 这个问题是怎么回事呢 有空麻烦解答下啊

@vipstone
Copy link

@giantss 具体不详,更新了PictureSelector 之后就好了。

@syanbo syanbo closed this as completed Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants