Bazaar Intent for various purposes (Android-Only)
MIT License
$ npm i react-native-cafebazaar-intent
$ react-native link react-native-cafebazaar-intent
android/app/src/main/java/com/moh3n95/bazaarIntents/MainActivity.java
import com.moh3n95.bazaarIntents.RNCafebazaarIntentPackage;
to the imports at the top of the filenew RNCafebazaarIntentPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-cafebazaar-intent'
project(':react-native-cafebazaar-intent').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cafebazaar-intent/android')
android/app/build.gradle
:
compile project(':react-native-cafebazaar-intent')
import {view, rate, login, developerCollection} from 'react-native-cafebazaar-intent';
view("YOUR_APP_PACKAGE_NAME")
.then(() => console.log('OK'))
.catch((e) => console.log(e));
rate("YOUR_APP_PACKAGE_NAME")
.then(() => console.log('OK'))
.catch((e) => console.log(e));
login()
.then(() => console.log('OK'))
.catch((e) => console.log(e));
developerCollection("YOUR_DEVELOPER_ID")
.then(() => console.log('OK'))
.catch((e) => console.log(e));
This package is based on Bazaar Technical Documents
Thank you for your interest in contributing! Please feel free to put up a PR for any issue or feature request.
If you think this project is helpful just give me a ⭐️ Star is enough because i don't drink coffee 😃
This project is licensed under the MIT License - see the LICENSE.md file for details
Made with ❤️ by Mohsen Madani.