Open vinaysgl opened 2 years ago
open android studio and build the project it will show you error in custom ui sdk just go with make variable final it worked for me in RazorpayModule.java change line 85-86 to this @ReactMethod public void initRazorpay(final String key){ final Activity currentActivity = getCurrentActivity();
@vinaysgl Is this issue resolved? We can close it out then.
error: local variable currentActivity is accessed from within inner class; needs to be declared final
Description
Please provide a clear and concise description of what the bug is. Include screenshots if needed. Please test using the latest React Native Razorpay plugin release to make sure your issue has not already been fixed.
Razorpay Package Version :
Open
Package.json
. > 2.2.1Java and Gradle Version (android) :
Specify your Java and Gradle version.
What you did:
What happened:
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
1. 2.
Suggested solution:
Code example, screenshot, or link to a repository:
Please provide a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve