1.0.3 • Published 6 years ago

@ingenuity-labs/react-native-async-storage-wrapper v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

react-native-async-storage-wrapper NPM version Build Status

An Async Storage utility wrapper for React Native projects thru the initiative of Ingenuity Labs.

Installation

$ npm install --save @ingenuity-labs/react-native-async-storage-wrapper

Usage

AsyncStorage is a collection of utility methods designed to simplify storing of an object to React Native's AsyncStorage module. It is composed of three(3) methods.

  • getObjectWithIdentifier(identifier)

    Retrieves the corresponding object of the provided identifier from the storage. It returns a Promise object wherein the object is returned when resolve, else, you need to catch the error when it failed to fetch the object.

  • removeObjectWithIdentifier(identifier)

    Removes the corresponding object of the provided identifier to the storage, else, you need to catch the error when it failed to remove the object.

  • setObjectWithIdentifier(object, identifier)

    Stores the corresponding object with its given identifier to the storage, else, you need to catch the error when it failed to store the object.

Contributing

  1. Fork repository
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

MIT

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago