Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fabric: Fixes high contrast color when not specified (#47418)
Summary: Fixes the high contrast color when not specified. Previously, if we didn't specify highContrastLight or highContrastDark, it would create a UIColor with an alpha of 0, which is not what we expected. We should fall back to the dark or light color instead. ## Changelog: [IOS] [FIXED] - Fabric: Fixes high contrast color when not specified Pull Request resolved: #47418 Test Plan: 1. Enable color contrast in iPhone's settings. 2. Open PlatformColor example in RNTester. See dynamic colors 3. color shows correctly ![image](https://github.com/user-attachments/assets/a71b8743-b397-4a11-b287-ec117b1ba243) Before: ![image](https://github.com/user-attachments/assets/6a12824b-f77c-4979-a232-c1c97554e53c) Reviewed By: javache Differential Revision: D66303078 Pulled By: cipolleschi fbshipit-source-id: 63a0d2bc94eea438d4f69643d09825b74575188b
- Loading branch information