mushroomjs-auth-rn-async-storage
v1.1.0
Published
Implementation AuthStorage by using AsyncStorage in react-native
Downloads
2
Maintainers
Readme
Install
npm install mushroomjs-auth-rn-async-storage
Or
yarn add mushroomjs-auth-rn-async-storage
Dependent on
mushroomjs, mushroomjs-auth
Usage
import mushroom, { Mushroom } from "mushroomjs";
import "mushroomjs-auth";
import AuthAsyncStorage from "mushroomjs-auth-rn-async-storage";
// default mushroom instance
useAuth(AuthAsyncStorage, mushroom);
// custom mushroom instance
const other: IMushroom = new Mushroom("other");
useAuth(AuthAsyncStorage, other);
Release notes
1.1.0
New features:
- Support Typescript
- Compatible with
[email protected].*