Life of file at URI returned by Expo components

Please provide the following:

  1. SDK Version: “expo”: “~42.0.1”,
  2. Platforms(Android/iOS/web/all): any

When I get a uri back from Expo components, how long can I expect that file to live for? Or should I always copy it to the filesystem no matter how short of a lifespan I may need it for?

For instance ImagePicker (imagePickerResult.uri) returns “file:///var/mobile/Containers/Data/Application/56D9D57B-AF36-42CE-B246-835F6284F07E/Library/Caches/ExponentExperienceData/%2540dedicatedmanagers%252Fmy-app/ImagePicker/191D5421-502E-416B-81FE-1F3685FC7430.jpg” in the Expo Go app.

Expo-av returns “file:///var/mobile/Containers/Data/Application/56D9D57B-AF36-42CE-B246-835F6284F07E/Library/Caches/ExponentExperienceData/%2540dedicatedmanagers%252Fmy-app/AV/recording-1415829B-95AC-40F8-AEC2-A15F69D12D24.caf” in the Expo Go app.

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