Description
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:
- 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
Smartphone (please complete the following information):
- Device: IOS simulator
Additional context
Add any other context about the problem here.