question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash when leaving screen without entering any input [Reproducible on the Stripe demo]

See original GitHub issue

Describe the bug The app will crash when you leave the screen with <CardField /> and the user did not input anything.

To Reproduce

Reproducible on the demo snack

Go to a screen with <CardField /> Try to leave the screen without entering anything in.

Here is a video of the error on the demo snack

Expected behavior Should be able to leave the screen even if nothing is entered

Screenshots Here is a video of the error on the demo snack

iPhone SE:

Additional context I noticed, that if the user enters any input, they can go back with out any issues.

Since this was marked as usable for production, we pushed this build to production already. Is there a quick fix that we can deploy?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cruzachcommented, Aug 10, 2021

This fix won’t land in Expo Go until our next release (SDK 43), but you can get it in your standalone app built with eas build since that picks up whatever version of react-native and @stripe/stripe-react-native you have set in package.json

1reaction
arekkubaczkowskicommented, Aug 10, 2021

@Legym this is related to this https://github.com/stripe/stripe-react-native/issues/440, this is fixed already in the latest library version, unfortunately you need to wait for the next release of expo to get this fixed there. However this is related to the react-native version which doesn’t support certain methods which library uses yet, so you are able to fix it on your own by upgrading RN to 0.63.x or higher

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handle errors | Stripe Documentation
If an immediate problem prevents an API call from continuing, the Stripe Ruby library raises an exception. It's a best practice to catch...
Read more >
Card Element quickstart | Stripe Documentation
This quickstart covers how to get started on Stripe with the basic Card Element to start collecting card payments on Stripe.
Read more >
Stripe JS Reference
This reference documents every object and method available in Stripe's browser-side JavaScript library, Stripe.js. Use our React Stripe.js reference if you ...
Read more >
Stripe Checkout | Stripe Documentation
Checkout is a low-code payment integration that creates a customizable payment page so you can quickly collect payments on desktop and mobile devices....
Read more >
Let's figure out this PS5 Rest Mode bug! -Round 2 - Reddit
I've tested hopping in and out of different games, I've tested leaving a game running for several hours and slamming it into rest...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found