0.0.4 • Published 5 years ago

@shengoo/react-native-cookie-manager v0.0.4

Weekly downloads
4
License
-
Repository
-
Last release
5 years ago

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

  1. 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 the getPackages() method
  1. 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')
  2. 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;