Skip to content

Adyen Appearance React native IOS #562

Open
@faizantariq2

Description

@faizantariq2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingiOS SDKThis feature is missing on latest adyen-ios

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions