Unable to use MediaLibrary to createAsset for image taken with RNCamera

I’m currently using RNCamera after ejecting to Expo Kit due to some issues I was having with orientation when using Expo.Camera. RNCamera works well. However, if I use the returned URI to create a media asset using Expo.MediaLibrary.createAssetAsync, it throws an error:

Error: File 'file:///var/mobile/Containers/Data/Application/430EC48C-7AA7-4722-954D-077435AB78D7/Library/Caches/Camera/A1F0923C-2AC7-4063-B1B3-3EC87BEF1754.jpg' isn't readable.

If I swap out RNCamera for Expo.Camera and change nothing else at all, it works fine. So what’s the problem here? Is there a workaround?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.