Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reason-react-native/src/apis/ActionSheetIOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ external options:
~destructiveButtonIndex: int=?,
~title: string=?,
~message: string=?,
~tintColor: Style.color=?,
~tintColor: Color.t=?,
unit
) =>
options =
Expand Down
2 changes: 1 addition & 1 deletion reason-react-native/src/apis/ActionSheetIOS.re
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ external options:
~destructiveButtonIndex: int=?,
~title: string=?,
~message: string=?,
~tintColor: Style.color=?,
~tintColor: Color.t=?,
unit
) =>
options =
Expand Down
24 changes: 24 additions & 0 deletions reason-react-native/src/apis/Color.bs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use strict';


function rgb(r, g, b) {
return "rgb(" + (String(r) + (", " + (String(g) + (", " + (String(b) + ")")))));
}

function rgba(r, g, b, a) {
return "rgba(" + (String(r) + (", " + (String(g) + (", " + (String(b) + (", " + (String(a) + ")")))))));
}

function hsl(h, s, l) {
return "hsl(" + (String(h) + (", " + (String(s) + ("%, " + (String(l) + "%)")))));
}

function hsla(h, s, l, a) {
return "hsl(" + (String(h) + (", " + (String(s) + ("%, " + (String(l) + ("%, " + (String(a) + ")")))))));
}

exports.rgb = rgb;
exports.rgba = rgba;
exports.hsl = hsl;
exports.hsla = hsla;
/* No side effect */
Loading