Socket
Socket
Sign inDemoInstall

react-native-sync-localstorage

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-sync-localstorage

None async local storage


Version published
Weekly downloads
24
decreased by-65.22%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-native-localstorage

None async local storage

[Installation]

npm install --save react-native-sync-localstorage

[Usage]

1. Loading stored values at beginnig

import localStorage from 'react-native-sync-localstorage'

...

localStorage.getAllFromLocalStorage()
  .then(() => {
    // Do Something after loading...
  })
  .catch(err => {
    console.warn(err)
  })

2. Use local storage comfortable

2-1. Setting
const value = 12345
localStorage.setItem('key', value)
2-2. Getting
localStorage.getItem('key')
2-3. Deleting
localStorage.removeItem('key')

Keywords

FAQs

Last updated on 22 Dec 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc