You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Screenshots
Smartphone (please complete the following information):
Device: IOS simulator
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
This is known behaviour of iOS SDK - somehow Swift is incorrectly allocating memory for a big value type.
From what we know it is only reproducible on device in DEBUG mode.
There is no known workaround, but maybe you can do something like:
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:
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
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: