react-native-payments icon indicating copy to clipboard operation
react-native-payments copied to clipboard

Cannot read property 'show' of undefined

Open Tiamatmate opened this issue 6 years ago • 4 comments

I followed the setup tutorial.

  1. Installed library.

  2. Linked it. (There was a problem with MainApplication.java path, but I fixed it and linked again successfully)

  3. Set up Apple and Android pay (dependencies etc.)

  4. I imported library globally as in Readme.md

  5. Implemented Payment method data and payment details -I followed instructions on Google to create public key

  6. I call it in ComponentWillMount like: paymentRequest = new PaymentRequest(METHOD_DATA_ANDROID, DETAILS); paymentRequest.show()

And I get the warning that's in title of the issue.

Tiamatmate avatar Mar 12 '19 08:03 Tiamatmate

Hi, Did you find a way to fix it?

saeedtkh avatar Jun 14 '19 14:06 saeedtkh

same problem here, did you find a solution ?

thomasgataly avatar Jul 22 '19 08:07 thomasgataly

you need to manually import the files in xcode

matwming avatar Aug 14 '19 03:08 matwming

you need to manually import the files in xcode

shouldn't this be included in the README file?

henriquezago avatar Jan 08 '20 20:01 henriquezago