From 447cb7617c18cbe333ffcc992d3486fc74c0ee5b Mon Sep 17 00:00:00 2001 From: Zankich Date: Wed, 10 Feb 2021 18:57:48 -0800 Subject: [PATCH] Made promise retry fix to data collection and bumped version --- android/src/main/java/com/smarkets/paypal/RNPaypalModule.java | 3 ++- package.json | 2 +- paypalExample/ios/Podfile.lock | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/android/src/main/java/com/smarkets/paypal/RNPaypalModule.java b/android/src/main/java/com/smarkets/paypal/RNPaypalModule.java index 32c0ef3..a06eafd 100644 --- a/android/src/main/java/com/smarkets/paypal/RNPaypalModule.java +++ b/android/src/main/java/com/smarkets/paypal/RNPaypalModule.java @@ -165,10 +165,11 @@ public void requestDeviceData( final String token, final Promise promise ) { + this.promise = promise; BraintreeFragment braintreeFragment = null; try { - braintreeFragment = initializeBraintreeFragment(token, promise); + braintreeFragment = initializeBraintreeFragment(token); } catch (Exception e) { promise.reject("braintree_sdk_setup_failed", e); return; diff --git a/package.json b/package.json index d3c16d9..a43525c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-paypal", - "version": "4.0.0", + "version": "4.0.1", "description": "React Native library that implements PayPal Checkout flow using purely native code", "main": "index.js", "typings": "index.d.ts", diff --git a/paypalExample/ios/Podfile.lock b/paypalExample/ios/Podfile.lock index cd04ab0..17d6317 100644 --- a/paypalExample/ios/Podfile.lock +++ b/paypalExample/ios/Podfile.lock @@ -320,7 +320,7 @@ PODS: - React-Core (= 0.63.2) - React-cxxreact (= 0.63.2) - React-jsi (= 0.63.2) - - RNPaypal (4.0.0): + - RNPaypal (4.0.1): - Braintree - React - Yoga (1.14.0) @@ -489,7 +489,7 @@ SPEC CHECKSUMS: React-RCTText: 1b6773e776e4b33f90468c20fe3b16ca3e224bb8 React-RCTVibration: 4d2e726957f4087449739b595f107c0d4b6c2d2d ReactCommon: a0a1edbebcac5e91338371b72ffc66aa822792ce - RNPaypal: 54ceeddf71841ad3c4936c5536f5c670f4a1beac + RNPaypal: 7ae7dd3a064952db331fd87baa6d6d4853ef7ab9 Yoga: 7740b94929bbacbddda59bf115b5317e9a161598 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a