Issue with Stripe in detachhed expo - Android

Expo fails with this error when it comes to open a screen that adds a credit card to it

TypeError: TypeError: undefined is not an object (evaluating 'h.init')

This error is located at:
    in t
    in Connect(t)
    in t
    in RCTView
    in t
    in n
    in t
    in n
    in RCTView
    in t
    in RCTView
    in t
    in t
    in RCTView
    in t
    in e
    in r
    in Unknown
    in n
    in n
    in t
    in RCTView
    in t
    in RCTView
    in t
    in t
    in RCTView
    in t
    in AndroidViewPager
    in n
    in t
    in RCTView
    in t
    in t
    in r
    in withCachedChildNavigation(r)
    in Unknown
    in n
    in n
    in t
    in RCTView
    in t
    in n
    in t
    in n
    in RCTView
    in t
    in RCTView
    in t
    in t
    in RCTView
    in t
    in e
    in r
    in Unknown
    in n
    in n
    in t
    in t
    in withCachedChildNavigation(t)
    in Unknown
    in n
    in n
    in n
    in t
    in RCTView
    in t
    in n
    in r
    in RCTView
    in t
    in RCTView
    in t
    in t
  at componentWillMount (/Users/ddd/reactcode/xxx/src/components/screens/CreditCardScreens/CardFormScreen.js:152:11)

Any idea what could be happening?

Edit: The issue is with this line Stripe.setOptionsAsync({
publishableKey: Endpoints.stripe_key
});

I remove this and everything seems to work fine. Can someone help?

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.