ae-coupons-library
v1.4.0
Published
App Extension Coupons SDK for Android
Downloads
6
Readme
ae-coupons-library
Getting started
$ npm install ae-coupons-library --save
Mostly automatic installation
$ react-native link ae-coupons-library
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.appextension.reactcoupons.RNCouponsPackage;
to the imports at the top of the file - Add
new RNCouponsPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':ae-coupons-library' project(':ae-coupons-library').projectDir = new File(rootProject.projectDir, '../node_modules/ae-coupons-library/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:implementation project(':ae-coupons-library')
Usage
import AppExtensionCoupons from 'ae-coupons-library';