Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@athrok/react-native-async-storage

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@athrok/react-native-async-storage

React Native AsyncStorage persistence wrapper for Athrok state management library.

  • 0.0.1-alpha
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@athrok/react-native-async-storage

React Native AsyncStorage Persistence Wrapper for Athrok State Management Library

Introduction

@athrok/react-native-async-storage is a utility package that provides seamless integration between React Native's AsyncStorage and Athrok state management library. This package offers a convenient way to persist application state managed by Athrok across app sessions in a React Native environment.

Features

  • Adapts React Native's AsyncStorage methods to conform to Athrok's state persistence requirements.
  • Allows easy integration of AsyncStorage with Athrok's StorageManager for managing application state persistence.
  • Provides a simple and straightforward API for asynchronous storage operations.

Installation

You can install @athrok/react-native-async-storage via npm or yarn:

npm install @athrok/react-native-async-storage

or

yarn add @athrok/react-native-async-storage

Peer Dependencies: Make sure you have athrok installed as a peer dependency.

npm install athrok

or

yarn add athrok

Usage

To use @athrok/react-native-async-storage, follow these steps:

  1. Import the necessary modules:
import React from "react";
import { PersistenceProvider } from "@athrok/react-native-async-storage";
  1. Wrap your application's components with PersistenceProvider:
export default function App() {
  return (
    <PersistenceProvider>
      {
        // Place your application's child components and data here
      }
    </PersistenceProvider>
  );
}

In this example, the PersistenceProvider component ensures that Athrok's AsyncStorage persistence is initialized and ready for use throughout the application. You can place your application's child components and data inside the PersistenceProvider component to manage the persistence of the application state across app sessions seamlessly.

Contributing

Contributions to @athrok/react-native-async-storage are welcome! Feel free to submit bug reports, feature requests, or pull requests on GitHub.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 12 May 2024

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