From c9d01989132dd74b1b932dfeb8f8e2206352424c Mon Sep 17 00:00:00 2001 From: Sivakumar J Date: Wed, 1 Mar 2017 19:50:52 +0530 Subject: [PATCH] razorpay react-native version 0.40 and above support --- android/src/main/java/com/razorpay/rn/RazorpayModule.java | 5 +++++ ios/RazorpayCheckout.h | 2 +- ios/RazorpayEventEmitter.h | 2 +- ios/RazorpayEventEmitter.m | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/android/src/main/java/com/razorpay/rn/RazorpayModule.java b/android/src/main/java/com/razorpay/rn/RazorpayModule.java index 8ec9a9a3a..18dfee29e 100644 --- a/android/src/main/java/com/razorpay/rn/RazorpayModule.java +++ b/android/src/main/java/com/razorpay/rn/RazorpayModule.java @@ -117,6 +117,11 @@ public void onActivityResult(Activity activity, int requestCode, int resultCode, } @Override + public void onNewIntent(Intent intent) { + + } + + public void onActivityResult(int requestCode, int resultCode, Intent data){ Checkout.handleActivityResult(getCurrentActivity(), requestCode, resultCode, data, this); } diff --git a/ios/RazorpayCheckout.h b/ios/RazorpayCheckout.h index 91bc413d9..580504d5b 100644 --- a/ios/RazorpayCheckout.h +++ b/ios/RazorpayCheckout.h @@ -6,7 +6,7 @@ // Copyright © 2016 Razorpay. All rights reserved. // -#import "RCTBridgeModule.h" +#import @interface RazorpayCheckout : NSObject diff --git a/ios/RazorpayEventEmitter.h b/ios/RazorpayEventEmitter.h index c8a5278f4..b0eaca5da 100644 --- a/ios/RazorpayEventEmitter.h +++ b/ios/RazorpayEventEmitter.h @@ -6,7 +6,7 @@ // Copyright © 2016 Facebook. All rights reserved. // -#import "RCTEventEmitter.h" +#import @interface RazorpayEventEmitter : RCTEventEmitter diff --git a/ios/RazorpayEventEmitter.m b/ios/RazorpayEventEmitter.m index ea8e82eec..1b05d08e0 100644 --- a/ios/RazorpayEventEmitter.m +++ b/ios/RazorpayEventEmitter.m @@ -8,8 +8,8 @@ #import "RazorpayEventEmitter.h" -#import "RCTBridge.h" -#import "RCTEventDispatcher.h" +#import +#import NSString *const kPaymentError = @"PAYMENT_ERROR"; NSString *const kPaymentSuccess = @"PAYMENT_SUCCESS";