Skip to content

Commit f943fd7

Browse files
Fix iconTint ignored in ShieldConfiguration (#91)
* Initial plan * Fix iconTint not being applied to shield icon Co-authored-by: robertherber <1467411+robertherber@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: robertherber <1467411+robertherber@users.noreply.github.com>
1 parent c97333b commit f943fd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native-device-activity/targets/ShieldConfiguration/ShieldConfigurationExtension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func resolveIcon(dict: [String: Any]) -> UIImage? {
6161
}
6262

6363
if let iconTint = getColor(color: dict["iconTint"] as? [String: Double]) {
64-
image?.withTintColor(iconTint)
64+
image = image?.withTintColor(iconTint, renderingMode: .alwaysOriginal)
6565
}
6666

6767
return image

0 commit comments

Comments
 (0)