Closed kaiserama closed 7 years ago
Not quite sure what your question is?
Example code base: https://github.com/z-dev/react-native-checkout-example
It's up to you to connect Add Card button on <SelectPayment>
to the <AddCard>
component. Maybe do some navigation stuff, but that's up to your app.
Right now there is no prop to hide the Add Card button, although I think that might make sense. You can pass your own styles including the style for the button here: https://github.com/z-dev/react-native-checkout/blob/master/src/components/selectPayment/defaultStyles.js#L4
No problem. I think I was just thinking that the Add New Card button would somehow be connected to the Add Card component and I was just missing something. I figured out a workable solution. Thanks!
Just curious if there was an example or if I'm missing something with regard to connecting the Add Card button on the Select Payment component to the Add Card or Add Stripe Card components. Even if the button could just be hidden, that would be great so I could have 2 separate views for selection or adding cards. Any help is appreciated!