1.1.0 • Published 1 year ago
mushroomjs-auth-rn-async-storage v1.1.0
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
mushroomjs@1.1.*