meda pay for react native
npm install rn-meda-pay
$ npm install react-native-meda-pay --save
$ react-native link react-native-meda-pay
#### Android
1. Open up android/app/src/main/java/[...]/MainActivity.java
- Add import com.reactlibrary.RNMedaPayPackage; to the imports at the top of the file
- Add new RNMedaPayPackage() to the list returned by the getPackages() method
2. Append the following lines to android/settings.gradle:
``
include ':react-native-meda-pay'
project(':react-native-meda-pay').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-meda-pay/android')
`
3. Insert the following lines inside the dependencies block in android/app/build.gradle:
`
implementation project(':react-native-meda-pay')
`Usage
`javascript
import RNMedaPay from 'react-native-meda-pay';
// TODO: What to do with the module?
RNMedaPay.pay(conf);
``