-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add imperative cardField methods (focus, blur, clear) #337
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
@arekkubaczkowski not sure if you spotted but I've added func paymentCardTextFieldDidEndEditing(_ textField: STPPaymentCardTextField) {
onFocusChange?(["focusedField": NSNull()])
} |
If someone needs this features in the meanwhile that stripe makes a new release, you can install the library from master
or
after installing it, go inside node_modules/@stripe/stripe-react-native , delete the example folder and run At the end of the process, you should have a new lib folder and you should be able to use the library (it worked for me, at least) |
Please release this PR soon. Thanks! |
We'll be releasing a new version later this week. If you need it earlier you can build and install the master branch locally: https://github.com/stripe/stripe-react-native/blob/master/CONTRIBUTING.md#install-library-as-local-repository |
There is no need to use
StripeContainer
anymore since it's registered to RN InputState.auto keyboard state example:
example of methods usage: