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

Support numeric keyboard for zip codes

Open ktamir opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. Currently, the keyboard type is numeric for all fields except zip code. While some countries have zip codes with letters, in the US the zip codes are always numeric so in that case we don't want to support letters input in the zip code field.

Describe the solution you'd like A way to pass keyboard type for the zip code as props to the CardField component (e.g zipCodeKeyboardType="numeric")

ktamir avatar Aug 25 '21 15:08 ktamir

Hi @ktamir. I'm afraid we cannot implement this without changing stripe-ios and stripe-android libraries.

@davidme-stripe is specifying the keyboard type for zip code somewhere in the backlog?

souhe avatar Aug 27 '21 06:08 souhe

@souhe This can be implemented only on react-native end and doesn't require any changes in native libraries. I am gonna keep this open and we take care of this in the near future.

arekkubaczkowski avatar Oct 07 '21 12:10 arekkubaczkowski

Unfortunately it turns out that it's possible to implement this only na Android (without any changes on native side) so we need to put it aside at the moment

arekkubaczkowski avatar Oct 08 '21 05:10 arekkubaczkowski