id | title | officialDoc |
---|---|---|
dynamiccolorios |
DynamicColorIOS |
DynamicColorIOS takes a single argument as an record with two keys: dark and light. These correspond to the colors you want to use for "light mode" and "dark mode" on iOS.
type t = {
dark: Color.t,
light: Color.t
}
make
takes an record with dark
and light
, and returns a color corresponding to the user's dark mode configuration.
make: t => Color.t
open ReactNative
let labelColor = DynamicColorIOS.make({ light: "black", dark: "white" })