google-pay / react-native-make-payment

React Native library for making native payments
Apache License 2.0
17 stars 5 forks source link

[BUG] GooglePayButton ignore props. #19

Closed alex-vasylchenko closed 6 months ago

alex-vasylchenko commented 6 months ago

Hi, in the example we can see that the button has several arguments, such as radius, type and theme. But in native code, these arguments are ignored, instead default values are used.

 var type = ButtonConstants.ButtonType.BUY
 var theme = ButtonConstants.ButtonTheme.DARK
 var cornerRadius = 10
stephenmcd commented 6 months ago

When I change the values for the props in the example and run it, I can see the new values reflected in the app.

Can you provide an example that reproduces the issue you're seeing?

alex-vasylchenko commented 6 months ago

I also used the code from the example. If it works for you then ok, it's not relevant for me anymore. Thank you.