z-dev / react-native-checkout

Checkout component for React Native
110 stars 41 forks source link

How override styles to StripeAddCard #46

Open pfuentes1402 opened 5 years ago

pfuentes1402 commented 5 years ago

I need change default styes to StripeAddCard, how i can do it? In https://github.com/z-dev/react-native-checkout/blob/master/src/components/addCard/defaultStyles.js mention this, but don't explain the importation and use.

Thanks

richardgill commented 5 years ago

You pass in a styles= prop.

What is in that file is the default styles= prop.

pfuentes1402 commented 5 years ago

You pass in a styles= prop.

What is in that file is the default styles= prop.

Thanks richardgill. In https://github.com/z-dev/react-native-checkout/blob/master/src/components/selectPayment/defaultStyles.js is the definition of component style classes. To redefine them, just create a new style file and overwrite the properties you want.

regards