'Store redux data that can be accessible with swift and java

I want to rewrite my React Native application with Java for Android and Swift for iOS. The thing is, I don't want to lose application data so that the user has to set up the application again.

Imagine we're on version 2.0.0 (Written in RN) and version 3.0.0 is written in Java and Swift. I want to store my redux store somewhere so that I can retrieve that on the native side and after the user updates the app.

I found this library to store app data into a .plist file that can be accessed with Swift later on. I don't know if that's the right way for iOS and also I have no clue of what should I do for Android side.

Note that I can't get the config file from the network and I'm using redux-persist to persist the data for my app.

Any help would be appreciated.



Solution 1:[1]

I guess you can integrate a minimum react native module within your new native apps, and make it provide a data migration path for your existing customers. Not sure how you will solve this with a decent UX though.

https://reactnative.dev/docs/integration-with-existing-apps

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 goodhyun