Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Add ReasonML binding #5

Open
fakenickels opened this issue Mar 21, 2019 · 1 comment
Open

Add ReasonML binding #5

fakenickels opened this issue Mar 21, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@fakenickels
Copy link
Contributor

No description provided.

@guilhermedecampo guilhermedecampo added the enhancement New feature or request label Mar 21, 2019
@fakenickels
Copy link
Contributor Author

fakenickels commented Mar 22, 2019

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";
};

@fakenickels fakenickels added the good first issue Good for newcomers label Apr 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants