Crash when leaving screen without entering any input [Reproducible on the Stripe demo]
See original GitHub issueDescribe 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:
- OS Version: 13.4.1
- Model: iPhone SE
- Expo SDK: 42
- Expo type: Managed
- Stripe Version: “@stripe/stripe-react-native”: “^0.1.4”,
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:
- Created 2 years ago
- Comments:8 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 ofreact-native
and@stripe/stripe-react-native
you have set in package.json@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