Add ReasonML binding
fakenickels opened this issue · 1 comments
fakenickels commented
Add ReasonML binding
fakenickels commented
Aiming something like this
ttps://github.com/reasonml-community/bs-react-native/blob/master/bs-react-native-next/src/Text.re
module Text = {
type t =
(
~accessible: bool=?,
~accessibilityHint: string=?,
~accessibilityLabel: string=?,
~allowFontScaling: bool=?,
~ellipsizeMode: [@bs.string] [ | `clip | `head | `middle | `tail]=?,
~numberOfLines: int=?,
~onLongPress: unit => unit=?,
~onPress: unit => unit=?,
~selectable: bool=?,
~testID: string=?,
~selectionColor: string=?,
~textBreakStrategy: [@bs.string] [ | `simple | `highQuality | `balanced]
=?,
~adjustsFontSizeToFit: bool=?,
~minimumFontScale: float=?,
~suppressHighlighting: bool=?,
~value: string=?,
~children: string=?
) =>
string;
[@react.component] [@bs.module "react-native"] external make: t = "Text";
};
module SelectableText = {
type t = (~menuItems: array(string)) => Text.t;
[@react.component] [@bs.module "react-native-native-selectable-text"] external make: t = "SelectableText";
};