5

react-native-camera在我的 iOS 应用上使用过,现在尝试向它添加焦点、亮度和缩放控件。到目前为止,我无法提出解决方案。知道怎么做吗?

我试图在不同的反应原生相机包中找到一个选项。也在他们的 git repos 中发布以寻求帮助。最后尝试了这篇文章:https ://medium.com/react-native-development/react-native-camera-app-with-live-preview-saturation-and-brightness-filters-d34535cc6d14他们在哪里从相机拍照每 5 毫秒调整一次亮度,这似乎很不稳定,它会使应用程序崩溃。

4

1 回答 1

0

It is not possible to use the focus and zoom functionalities with react-native-camera.

Unluckily the focus api has many bugs and the zoom functionalities will not render fast enough with javascript.

Maybe a solution is not using react-native-camera and instead just writing an intent to open the default camera application

The following app uses this solution, all the camera functionalities work perfectly.

Could they re-open the issue as it seems to not be solved? Developers may need to review all the open issues to estimate the project deadlines.

example

于 2019-10-15T01:26:01.000 回答