@shengoo/react-native-cookie-manager
v0.0.4
Published
## Getting started
Downloads
4
Readme
react-native-cookie-manager
Getting started
$ npm install react-native-cookie-manager --save
Mostly automatic installation
$ react-native link react-native-cookie-manager
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
com.sheng00.ReactNativeCookieManager.RNCookieManagerPackage;
to the imports at the top of the file - Add
new RNCookieManagerPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-cookie-manager' project(':react-native-cookie-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cookie-manager/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-cookie-manager')
Usage
import RNCookieManager from 'react-native-cookie-manager';
// TODO: What to do with the module?
RNCookieManager;