简体   繁体   English

本地电话摄像头

[英]react-native access phone camera

I am building an android app with react-native. 我正在用react-native构建一个Android应用程序。 It's a simple messaging app where you can send pictures. 这是一个简单的消息传递应用程序,您可以在其中发送图片。

I tried some components like react-native-camera but I'm not completely satisfied with the performance. 我尝试了一些组件,例如react-native-camera,但对性能并不完全满意。

I was thinking to do it like Cordova/pg does, accessing the default camera app to take pictures, like Slack does in the android app. 我一直在想像Cordova / pg那样做,访问默认的相机应用来拍照,就像Slack在android应用中一样。

Does someone knows to do that? 有人知道这样做吗? It's possible? 这是可能的?

Thanks 谢谢

尝试https://github.com/marcshilling/react-native-image-picker-您可以通过默认相机应用直接访问相机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM