[英]How to integrate native ios camera SDK in existing react native App?
I am currently working with a react native app as per requirement i need to integrate external camera with ios and android SDK.我目前正在根据要求使用 react native 应用程序,我需要将外部摄像头与 ios 和 android SDK 集成。
As react native SDK for particular camera is not available can anyone help me with any example how I can complete this task using iOS And Android SDK.由于特定相机的本机 SDK 不可用,任何人都可以帮我举个例子,我如何使用 iOS 和 Android03860E3DCAZ5E0B374 完成此任务
Camera should capture multiple images and video also so that I can post those with button press.相机还应该捕获多个图像和视频,以便我可以通过按钮发布这些图像和视频。
Thanks..!!谢谢..!!
Depends on how you want to take images and videos取决于您要如何拍摄图像和视频
2 ways possible 2种可能
Simple Approach: (in case default Camera launch)then there are many 3rd party libraries you can integrate.简单方法:(如果默认相机启动)那么您可以集成许多第三方库。 eg: https://github.com/react-native-community/react-native-image-picker#readme
例如: https://github.com/react-native-community/react-native-image-picker#readme
Since react-native doesn't provide specific camera APIs, you need to write camera-specific code for both IOS and Android separately and connect them.由于 react-native 不提供特定的相机 API,您需要分别为 IOS 和 Android 编写相机专用代码并连接它们。 You can refer
你可以 参考
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.