Open naheed-shamim opened 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.
<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.