[英]How start android default camera without showing chooser using react-native-image-crop-picker
我正在使用 react-native-image-crop-picker 库作为相机,但是当我打开相机获取选择器选项以选择任何一个相机应用程序时,我想直接打开默认相机而不显示来自 react native 的选择器选项
You can use this:你可以使用这个:
ImagePicker.openCamera({
width: 300,
height: 400,
cropping: true,
}).then(image => {
console.log(image);
});
You can directly invoke the function provided by react-native-image-crop it is called openCamera for camera opening you can use it as the following可以直接调用react-native-image-crop提供的函数,叫做openCamera开摄像头,可以如下使用
ImagePicker.openCamera({
...your camera config
}).then(image => {
console.log(image);
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.