Charly Berthet

Results 21 comments of Charly Berthet

@scarlac calling `const file = await RNFS.stat("content://...");` still returns the following error `{"nativeStackAndroid":[],"userInfo":null,"message":"File does not exist","code":"EUNSPECIFIED"}` even tho it was picked right from the device gallery. File exists because calling...

I can reproduce with my iphone 12 device iOS 15 when picking old photo. `result.assets` is empty and returns `errorCode "others"`. I suspect something happening with icloud. I can repro...

I was able to repro with a breakpoint and it sounds like the URL returned by `provider loadFileRepresentationForTypeIdentifier` points to an empty file. I picked a live photo captured a...

FYI: calling a second-time `provider loadFileRepresentationForTypeIdentifier:identifier` inside the `completionHandler` returns a non-empty file. There might be some race conditions where the first call is done too quickly

Help requested on Apple developer forum: https://developer.apple.com/forums/thread/737014

Worst workaround ever, but meanwhile... ``` diff --git a/node_modules/react-native-image-picker/ios/ImagePickerManager.mm b/node_modules/react-native-image-picker/ios/ImagePickerManager.mm index cce30e2..21a6005 100644 --- a/node_modules/react-native-image-picker/ios/ImagePickerManager.mm +++ b/node_modules/react-native-image-picker/ios/ImagePickerManager.mm @@ -547,11 +547,29 @@ - (void)picker:(PHPickerViewController *)picker didFinishPicking:(NSArray

@andresmejia3 not really... As of now, I am using my ugly workaround...

I am getting `nil` on url for some videos ![Capture d’écran 2023-11-02 aΜ€ 17 10 03](https://github.com/react-native-image-picker/react-native-image-picker/assets/3427453/e1087ee3-8a09-4931-9e49-c9884c955dd9)

any news on this PR ? @Johan-dutoit