react-native-hadada-service
v0.3.9
Published
React Native package for Hadada Service.
Downloads
38
Readme
react-native-hadada-service
React Native package for Hadada Service.
Installation
npm install react-native-hadada-service
Also install
npm i @react-native-community/netinfo
npm i rn-fetch-blob
npm i react-native-device-info
npm i react-native-webview
npm i react-native-contacts
npm i react-native-get-location
npm i react-native-call-log
npm i react-native-get-sms-android-v2
Add this lines to AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.READ_SMS" />
Modify your android/build.gradle configuration:
buildscript {
ext {
buildToolsVersion = "xx.yy.zz"
minSdkVersion = xyz
compileSdkVersion = xyz
targetSdkVersion = xyz
androidXCore = "1.7.0" // <-- Add this. Check versions here: https://developer.android.com/jetpack/androidx/releases/core
}
Usage
import HadadaService from "react-native-hadada-service";
// ...
<HadadaService
onMessage={event => onMessage(event)}
hadada_public_key={hadada_public_key}
full={true|false}(optional)
/>
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT