We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5691466 commit 59b98d2Copy full SHA for 59b98d2
1 file changed
android/src/main/java/com/paypalwebpayments/PaypalWebPaymentsModule.kt
@@ -36,14 +36,14 @@ class PaypalWebPaymentsModule internal constructor(context: ReactApplicationCont
36
onEvent: Callback?
37
) {
38
39
- currentActivity!!.runOnUiThread {
+ reactApplicationContext.currentActivity!!.runOnUiThread {
40
val config = CoreConfig(
41
clientID,
42
environment.toEnvironment()
43
)
44
45
val payPalWebCheckoutClient = PayPalWebCheckoutClient(
46
- currentActivity as FragmentActivity,
+ reactApplicationContext.currentActivity as FragmentActivity,
47
config,
48
urlScheme
49
0 commit comments