UNPKG

mushroomjs-auth-rn-async-storage

Version:

Implementation AuthStorage by using AsyncStorage in react-native

34 lines (20 loc) 657 B
# 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.*`