Open qnarik-avetisyan opened 2 years ago
i am having same issues on ios is there any solution yet
seems to be happening only on M1
I am also experiencing the similar issue
Add this key: NSPhotoLibraryUsageDescription to Info.plist. This issue will be resolved.
I am also facing this while selecting random images just like some from start some from between & some from last images (e.g gallery) 1867
I also face the similar issue and with M1
Add this key: NSPhotoLibraryUsageDescription to Info.plist. This issue will be resolved.
This is not the issue - we have this permission - and the crash is happening
Yes, and i ve got an issue , sometimes i can upload the images, but sometimes it couldn’t (invalid file), but in Android it works fine 100%
@arwys - but sometimes it couldn’t (invalid file). Do you know what this errror is?
@jacquesdev I dont know what is the error to be honest, i am on 0.64, its confusing me till now
我同事选择视频会出现界面卡死或者闪退,一些视频好的,一些不行,他把不好的视频 发给我,我上传没问题。 Xcode 13.2.1 iPhone12 iOS15.4.1 "react-native-image-crop-picker": "^0.33.4", "react-native": "0.63.5",
//从手机相册选择
ImagePicker.openPicker({
compressVideoPreset: 'Passthrough',
compressImageQuality: 0.1, //以质量压缩图像(从0到1,其中1为最佳质量)。在iOS上,大于0.8的值在大多数图像中不会产生明显的质量提高,而大于0.8的值将使文件大小比减小1的大小减少一半或更少。
showsSelectedCount: true, //是否显示所选资产的数量 仅iOS
cropperChooseText: translate('food.complete_button'), //仅iOS
cropperCancelText: translate('platform.cancel'), //仅iOS
multiple: true,
cropping: false,
})
.then((imageList) => {
console.log('openPicker===', imageList);
let files = this.state.pictures;
for (let i = 0; i < imageList.length; i++) {
let image = imageList[i];
if (Platform.OS === 'ios') {
let filename = image.path.substring(
image.path.lastIndexOf('/') + 1,
);
let file = {
uri: image.path,
name: filename,
type: image.mime,
};
files.push(file);
} else {
let filename = image.path.substring(
image.path.lastIndexOf('/') + 1,
);
let file = {
uri: image.path,
name: filename,
type: image.mime,
};
files.push(file);
}
}
console.log('上传日志图片参数:files', files);
// Alert.alert('选择视频', JSON.stringify(files));
this.setState({
pictures: files,
});
})
.catch((error) => {
console.log('openPicker error', error);
// Alert.alert('选择视频错误提示', error);
});
same here,
I am using react-native-image-crop-picker: 0.38.0
I have the relevant usage descriptions in my Info.plist
file:
<key>NSPhotoLibraryUsageDescription</key>
<string>Please allow us to access to your photo library to upload photos.</string>
<key>NSCameraUsageDescription</key>
<string>Please allow us to access to your camera to take photos.</string>
When I try to call ImagePicker.openPicker
, I receive the following error:
"Could not find a storyboard named 'QBImagePicker' in bundle NSBundle
App crashes after calling ImagePicker.openPicker on IOS with error - Could not find a storyboard named 'QBImagePicker' in bundle NSBundle. (MAC OS M1, Xcode 13) I tried to add QBImagePicker.storyboard to Copy Bundle Resources, but getting same error again. Picker is opening and working as expected on android.