Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 658 Bytes

dynamiccolorios.md

File metadata and controls

34 lines (24 loc) · 658 Bytes
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.

Types

type t = {
  dark: Color.t,
  light: Color.t
}

Methods

make

make takes an record with dark and light, and returns a color corresponding to the user's dark mode configuration.

make: t => Color.t

Example

open ReactNative

let labelColor = DynamicColorIOS.make({ light: "black", dark: "white" })