I’ve been trying to migrate from ExpoKit to a project created using
The issue I’m having is that using the iOS simulator, the original data is stored in
FileSystem.documentDirectory + 'ExponentExperienceData/' + encodeURIComponent('%40name%2Fapp-slug')
and migration using a script similar to the one linked here (https://github.com/expo/expo/issues/5651#issuecomment-542786921) works fine.
However, in TestFlight, that location is showing
manifest.json as empty. Reinstalling the ExpoKit version of the app in TestFlight still displays the old data so it’s clearly there somewhere, just not in that location.
I suspect (though I may be wrong) this may be because the app uuid for the documentDir (
data/Containers/Data/Application/APP_UUID/Documents/) is different for the
react-native init app.
- Is there a way to ensure the app uuid when moving from expo/expokit to plain react-native remains the same so that data in the documentDir is accessible in the new version?
- What would be the best approach to migrate data when leaving the expo framework?
I am not against doing a staged migration (ie. new version of app in ExpoKit) to get the data somewhere else so I can eventually get to it with the new version of the app. I just need pointers on a way forward.