ImagePicker to get images and several times now all the images have disappeared on iOS.
This app has a list of items each of which has a list of images associated with it. When they disappear they disappear all at once and forever. We’re just storing the local
result.uri and using and
<Image> to display it. When they disappear the
<Image>s show up blank. This has happened 2 or 3 times separated by a period of a few days. Maybe it’s correlated with new releases of the Expo app? This has affected iOS but not Android.
I thought maybe the data directory changed but printing uris from before and after the disappearance shows that they differ only in filename.
Any idea what’s going on?
If there is a way to get the image data to store it in
AsyncStorage the application that could be a solid workaround. As it is we’re not sure how to recover when images disappear. Or if there is a way to peruse the data directory of Expo to see if maybe the images are still there but have changed somehow.
This problem happened even both before and after the iOS phone had more than one copy of the app (shared vs dev). And the app has only been released to the expo sharing world once.
Get image: https://github.com/seveneightn9ne/pottery-log/blob/b28d4a82b095fef8c8e0df06fc954c1ffdac3a42/ImagePicker.js#L26
Show image: https://github.com/seveneightn9ne/pottery-log/blob/b28d4a82b095fef8c8e0df06fc954c1ffdac3a42/PotListItem.js#L21