stripe-react-native
stripe-react-native copied to clipboard
Support numeric keyboard for zip codes
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"
)

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 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.
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