1.0.8 • Published 3 years ago
react-native-roamcharge v1.0.8
react-native-roamcharge
This is a react native wrapper over Native SDK of Roamcharge platform by Deepfleet
Reachout to support@deepfleet.com for your API Key
Getting started
$ npm install react-native-roamcharge --save
Mostly automatic installation
$ react-native link react-native-roamcharge
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-roamchargeand addRNRoamcharge.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNRoamcharge.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNRoamchargePackage;to the imports at the top of the file - Add
new RNRoamchargePackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-roamcharge' project(':react-native-roamcharge').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-roamcharge/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-roamcharge')
Usage
import RNRoamcharge from 'react-native-roamcharge';
// What to do with the module?
RNRoamcharge.show({API_KEY:'YOUR API KEY'});react-native-roamcharge is Copyright (c) 2022 Deepfleet Pvt Ltd. It is distributed under the MIT License.
License
We ♥ open source software! .Distributed under the MIT License.