mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Corrected documentation to be more gramatically correct (#35141)
Summary: The documentation for `useColorScheme()` suggested that the user's preferred color scheme will be 'Dark Mode'. Instead suggesting 'Dark Mode' as an example of what the user's preferred color scheme could be is more correct. ## Changelog [INTERNAL] [FIXED] - Edited documentation for `useColorScheme()` hook Edited ```javascript /** * A new useColorScheme hook is provided as the preferred way of accessing * the user's preferred color scheme (aka Dark Mode). */ export function useColorScheme(): ColorSchemeName; ``` to ```javascript /** * A new useColorScheme hook is provided as the preferred way of accessing * the user's preferred color scheme (e.g. Dark Mode). */ export function useColorScheme(): ColorSchemeName; ``` Pull Request resolved: https://github.com/facebook/react-native/pull/35141 Test Plan: Documentation only - no testing required. Reviewed By: cipolleschi Differential Revision: D40934781 Pulled By: rshest fbshipit-source-id: acac8947c3f99016839be27f505066e8992a20fa
This commit is contained in:
1 parent
358b7a4458
commit
74cb441e97
1 file changed
+1
-1
Vendored
+1
-1
@@ -38,6 +38,6 @@ export namespace Appearance {
|
||||
|
||||
/**
|
||||
* A new useColorScheme hook is provided as the preferred way of accessing
|
||||
* the user's preferred color scheme (aka Dark Mode).
|
||||
* the user's preferred color scheme (e.g. Dark Mode).
|
||||
*/
|
||||
export function useColorScheme(): ColorSchemeName;
|
||||
Reference in new issue
Block a user