spacemeshos / cosmic

🌱🌌 Seed for a universal (native iOS, native Android, web, desktop) app based on react native web, redux and Typescript
MIT License
32 stars 10 forks source link

Cross platform local storage #11

Open avive opened 5 years ago

avive commented 5 years ago

Is your feature request related to a problem? Please describe. A cross-platform solution for storing and accessing local app data.

Describe the solution you'd like We'd like to have a cross-platform component with a single interface to enable cosmic apps to use local storage. So Apps don't need to worry about the runtime platform and the same code can be used across all supported runtime platforms. The API should provide a key/value interface for reading and writing arbitrary keyed data. Data should be valid Json. Key should be a string.

Describe alternatives you've considered There might be a JS or Typescript library to provide this capability so the issue involves doing some research and integrating such a lib if it is well maintained and satisfies our requirements.

Additional context Will add some references here soon to applicable libraries