react-native-upi-intent-module-2
v1.0.1
Published
A React Native UPI intent plugin
Readme
react-native-upi-intentA React Native package for UPI integration using Intents on Android.
Table of Contents
Installation
Using npm
npm install react-native-upi-intent-moduleUsing yarn
yarn add react-native-upi-intent-moduleLinking
Automatic Linking
For React Native 0.60 and above, the package will be automatically linked. If you are using an older version, you need to link the package manually:
react-native link react-native-upi-intent-moduleManual Linking
If you are using React Native 0.60 and above, the package should be linked automatically. For versions below 0.60 or if automatic linking does not work, you will need to link the package manually.
Android
Add the package to your project settings:
android/settings.gradleinclude ':react-native-upi-intent-module' project(':react-native-upi-intent-module').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-upi-intent-module/android')Add the package as a dependency in your app:
android/app/build.gradledependencies { implementation project(':react-native-upi-intent-module') }Add the package to your MainApplication:
android/app/src/main/java/.../MainApplication.javaimport com.reactnativeupiintent.UPIPackage; // <-- Add this import public class MainApplication extends Application implements ReactApplication { // ... @Override protected List<ReactPackage> getPackages() { @SuppressWarnings(\"UnnecessaryLocalVariable\") List<ReactPackage> packages = new PackageList(this).getPackages(); packages.add(new UPIPackage()); // <-- Add this line return packages; } // ... }
iOS
Currently, this package supports only Android. iOS support can be added in future updates.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
License
MIT License
