adyen-react-native icon indicating copy to clipboard operation
adyen-react-native copied to clipboard

Adyen Appearance React native IOS

Open faizantariq2 opened this issue 1 year ago • 4 comments

Describe the bug I want to change the background color of the card component button. Instead of using the tint color that changes all the fields' colors, I want to change only the background color of the button. When I use the tint color constructor, it works fine, but when I try to change only the button's background color, I get a runtime error.

To Reproduce Steps to reproduce the behaviour:

  1. Add below code in AdyenAppearance.swift class.

import Adyen import adyen_react_native import Foundation /// Please make sure that the name of the class exactly matches. /// SDK will use reflection to find the class with this exact name. class AdyenAppearance: AdyenAppearanceProvider {

static func createStyle() -> Adyen.DropInComponent.Style { var style = Adyen.DropInComponent.Style() style.formComponent.mainButtonItem.button.backgroundColor = .red return style } } 2. run app and open card component you will get the error

Expected behavior It should only change the background color of the button of card component

Screenshots Screenshot 2024-12-23 at 18 23 10

Smartphone (please complete the following information):

  • Device: IOS simulator

Additional context Add any other context about the problem here.

faizantariq2 avatar Dec 23 '24 13:12 faizantariq2