react-native-community / discussions-and-proposals

Discussions and proposal related to the main React Native project
https://facebook.github.io/react-native/
1.66k stars 125 forks source link

Settings Supports Android SharedPreferences #276

Open netshade opened 3 years ago

netshade commented 3 years ago

Introduction

This proposal is for adding support for the Settings API in Android.

Details

The Settings object is currently iOS only. It would be valuable to provide an Android interface to SharedPreferences ( similar in intents to NSUserDefaults, the backing store used on iOS ). Doing so would let developers use the platform appropriate non-secure KV storage object w/o having to involve a separate third party library for Android.

Discussion points

netshade commented 3 years ago

Current third party libraries that add functionality here:

alipman88 commented 3 months ago

A package I'm working on, with the intent of mirroring React Native's Settings API:

https://github.com/alipman88/react-native-cross-platform-settings