Add processColor binding · rescript-react-native/rescript-react-native@0c880f8

Skip to content

Navigation Menu

Sign in

Appearance settings

Commit 0c880f8

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 3 additions & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,8 @@

11

type t = string

22
3+

@module("react-native")

4+

external processColor: string => string = "processColor"

5+
36

let rgb = (~r: int, ~g: int, ~b: int) => j`rgb($r, $g, $b)`

47

let rgba = (~r: int, ~g: int, ~b: int, ~a: float) => j`rgba($r, $g, $b, $a)`

58

0 commit comments