React Native provides a Settings API, acting as a persistent key–value data store with synchronous reads: https://reactnative.dev/docs/settings
However, the Settings API is only available to iOS applications. I've published an NPM package extending this interface to Android:
https://github.com/alipman88/react-native-cross-platform-settings
I'm new to the React Native ecosystem, and this is my first NPM package. Neither React Native or Kotlin are among the frameworks & languages I regularly use, so I very much appreciate feedback regarding conventions & best practices.
Top comments (0)