Home > OS >  TypeError: null is not an object (evaluating '_NativeStripeSdk.default.initialise') In rea
TypeError: null is not an object (evaluating '_NativeStripeSdk.default.initialise') In rea

Time:11-01

enter image description here

I am trying to link stripe payment to react native expo using the @stripe/stripe-react-native package but i am getting error while providing publishable key to stripe provider element

CodePudding user response:

You need to update to the latest version of Expo.

https://github.com/stripe/stripe-react-native#typeerror-null-is-not-an-object-evaluating-_nativestripesdkdefaultinitialise-on-android

CodePudding user response:

Looks Like, SDK is not initialised properly. SDK functions call before SDK is initialised Please follow the steps of SDK configuration.

https://www.npmjs.com/package/@stripe/stripe-react-native

  • Related