I’m trying to do the opposite of eject, i.e. move from a vanilla React Native app to a managed Expo app.
- Is there a guide for how to do this in general?
- In particular, is there a way to retrieve local user data that was previously stored in
AsyncStoragein users’ devices?
Start off with a bare React Native app and run the following:
await AsyncStorage.getItem('foo')// output is bar, as expected
Convert the app to a managed Expo app (same bundleIdentifier / package) and run the following
await AsyncStorage.getItem('foo')// empty
i.e. whatever data was saved to
AsyncStorage in vanilla RN is no longer accessible when I migrate to Expo.
It seems like Expo’s
AsyncStorage is fetching from
FileSystem.documentDirectory is something along the lines of
Documents/ExponentExperienceData/some-function-of-expo-user-and-slug, i.e. a new directory. I imagine there’s a way to migrate the data from the “normal” AsyncStorage dir that was used by vanilla RN to here.