New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@connected-home/react-native-android-shared-preferences

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@connected-home/react-native-android-shared-preferences

Android Shared Preferences for React Native

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by70%
Maintainers
5
Weekly downloads
 
Created
Source

React Native Android Shared Preferences

Android Shared Preferences for React Native

Install

npm install @connected-home/react-native-android-shared-preferences --save
# or...
yarn add @connected-home/react-native-android-shared-preferences
react-native link @connected-home/react-native-android-shared-preferences

Usage

Import

const SharedPreferences = require("react-native-android-shared-preferences");
// or...
import SharedPreferences from "react-native-android-shared-preferences";

Get item

SharedPreferences.getItem("file", "key", value => {
  ...
});

Get multiple items

SharedPreferences.getItems("file", ["key1", "key2"], values => {
  ...
});

Get keys

SharedPreferences.keys("file", keys => {
  ...
});

Get entries

SharedPreferences.entries("file", entries => {
  console.log(values);
});

Set Item

SharedPreferences.setItem("file", "key", "value");

Delete Item

SharedPreferences.deleteItem("file", "key");

Clear all items

SharedPreferences.clear("file");

Delete Prefs File

SharedPreferences.deleteFile("file");

Keywords

FAQs

Package last updated on 21 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc