Skip to content

Commit

Permalink
Add Appearance setColorScheme method
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Aug 4, 2023
1 parent d69aa1e commit 878f426
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apis/Appearance.res
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ type t = [#dark | #light]
@module("react-native") @scope("Appearance") @return(nullable)
external getColorScheme: unit => option<t> = "getColorScheme"

@module("react-native") @scope("Appearance")
external setColorScheme: t => unit = "setColorScheme"

@module("react-native") @return(nullable)
external useColorScheme: unit => option<t> = "useColorScheme"

Expand Down

0 comments on commit 878f426

Please sign in to comment.