mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
36c0a7dec1
Summary: Original PR: https://github.com/facebook/react-native/pull/31258 ## Imported PR from Github: This is a continuation of https://github.com/facebook/react-native/pull/29683. I've talked to danilobuerger who does not intend on continue work on it and is OK with me picking up where he left. This PR is identical besides adding a test case in the RN Tester app as requested in the original PR. In summary it gives iOS feature parity with Android in the sense that one can use user-defined native colors, something even the docs claim is possible. It's useful as it enables accessibility features such as high contrast colors and makes implementing dark mode simple. For an example on how it can be used, see https://github.com/klarna-incubator/platform-colors ## Changelog [iOS] [Added] - Allow PlatformColor to return user-defined named asset color Pull Request resolved: https://github.com/facebook/react-native/pull/31258 Test Plan: Test case added to RN Tester. Reviewed By: sammy-SC Differential Revision: D28803206 Pulled By: p-sun fbshipit-source-id: e0f0690274799bd2d09c9f9d1a6a95ac0f979498