#Flooven
1 messages ยท Page 1 of 1 (latest)
Hi Adrien! Let me look into this.
Still looking into this.
No problem ๐
Take your time ๐
Juste for information, i see that i version 0.16.0 of stripe, a type="standard_dark" was added to GooglePayButton..
But, i think the style of this button (first image) doesn't respect the standard of GooglePayButton (second image) because, this one have less radius.
I can't change the radius via style attribute.
That seem to be the only way to change the color.
Here are some style properties that are respected by the component: https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/GooglePayScreen.tsx#L175.
But due to Google's branding, most properties like background-color and border-radius seem to be fixed.
Ok thanks, i'll try to send this button to google to see if they accept it without the good border radius, thank you very much for your help ๐
It seems like in the new version the button types were limited to standard and pay: https://github.com/stripe/stripe-react-native/blob/master/CHANGELOG.md#breaking-changes-1
In the new version, the button is always black: https://developers.google.com/pay/api/android/guides/brand-guidelines
Yes i see that but, may be it's not a good thing because, when i read the google documentation, i see that Google Pay payment button is available in one color i just send my button in white to google yesterday and, they decline me the use of google pay.. ๐ฆ
If you use the newest version of Stripe SDK (>0.19.0), the button will be black at all times: https://github.com/stripe/stripe-react-native/blob/master/CHANGELOG.md#0190---2022-09-16
- it doesn't seem there was ever a possibility to change border-radius, unfortunately.
I hope this helps, let me know if I can help with anything else!