React Native: Multiple previews of camera stream

落爺英雄遲暮 提交于 2019-12-11 01:06:23

问题


I've got an application in React Native to be developed in Android and iOS, in which I'd like to take the camera stream, make some processing, and render it multiple times.

Imagine an app like Instagram, in which you can add filters to the camera live and it shows the applied filters with on live previews. It would be more or less the same.

I need to get the camera stream and be able to show it on screen multiple times.

I've tried react-native-camera, but it only lets me to get one instance of the camera to be shown.

With this same library, I've tried to take pictures in intervals of the camera and to render them via <Image> container but, of course, it's a performance kill and the app ends up crashing.

How can I achieve what I'm trying to do? Do you know of any module or any approach that allows me to do so?

Thank you.

来源:https://stackoverflow.com/questions/47772956/react-native-multiple-previews-of-camera-stream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!