From f5feb73022f9340583ebcf576eaedd3ca5677e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ma=C5=82ecki?= Date: Wed, 5 Mar 2025 03:30:42 -0800 Subject: [PATCH] Move PlatformColorValueTypesIOS comments from .d.ts to .js (#49834) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49834 Changelog: [Internal] Reviewed By: huntie Differential Revision: D70615477 fbshipit-source-id: 4f042d05a1c487ace87af07809c70e6a2582d652 --- .../Libraries/StyleSheet/PlatformColorValueTypesIOS.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.js b/packages/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.js index adfa2423129..c53f3d47e72 100644 --- a/packages/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +++ b/packages/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.js @@ -17,6 +17,12 @@ export type DynamicColorIOSTuple = { highContrastDark?: ColorValue, }; +/** + * Specify color to display depending on the current system appearance settings + * + * @param tuple Colors you want to use for "light mode" and "dark mode" + * @platform ios + */ export const DynamicColorIOS = (tuple: DynamicColorIOSTuple): ColorValue => { throw new Error('DynamicColorIOS is not available on this platform.'); };