payfort / rn-amazonpaymentservices

React Native package for Amazon Payment Services native mobile SDKs
MIT License
3 stars 4 forks source link

DirectPayButton payButtonProps don't work #9

Open naheed-shamim opened 1 year ago

naheed-shamim commented 1 year ago

<DirectPayButton requestObject={requestObjectDirectPay} environment={"TEST"} style={{ height: 180 }} payButtonProps={{ marginLeft: ScreenWidth / 30, // marginTop: 25, backgroundColor: "#026cff", text: "Pay Now", textFontFamily: "My-Font-Bold", textSize: 12, textColor: "#fff", buttonWidth: 150, buttonHeight: 30, borderRadius: 12, // borderWidth: 1, borderColor: "#383333", }} onFailure={onFailure} onSuccess={onSuccess} />

props under payButtonProps don't work textSize, texFontFamily are not reflecting any change.

Plus the margin props are behaving very strange, if I give +ve marginTop, instead of moving down, the component moves up.