Module Text-BsReactNative

module type TextComponent = { ... };
module CreateComponent: (Impl: BsReactNative.View.Impl) => TextComponent;
include TextComponent;
let make: ?⁠accessible:bool => ?⁠accessibilityHint:string => ?⁠accessibilityLabel:string => ?⁠allowFontScaling:bool => ?⁠ellipsizeMode:[ `clip | `head | `middle | `tail ] => ?⁠numberOfLines:int => ?⁠onLayout:(BsReactNative.RNEvent.NativeLayoutEvent.t => unit) => ?⁠onLongPress:(unit => unit) => ?⁠onPress:(unit => unit) => ?⁠pressRetentionOffset:BsReactNative.Types.insets => ?⁠selectable:bool => ?⁠style:BsReactNative.Style.t => ?⁠testID:string => ?⁠selectionColor:string => ?⁠textBreakStrategy:[ `balanced | `highQuality | `simple ] => ?⁠adjustsFontSizeToFit:bool => ?⁠minimumFontScale:float => ?⁠suppressHighlighting:bool => ?⁠value:string => array(ReasonReact.reactElement) => ReasonReact.component(ReasonReact.stateless, ReasonReact.noRetainedProps, unit);

A React component for displaying text. You can read more on Text component usage in official docs: https://facebook.github.io/react-native/docs/text

Props

accessible
~accessible: bool=?
accessibilityHint
~accessibilityHint: string=?
accessibilityLabel
~accessibilityLabel: string=?
allowFontScaling
~allowFontScaling: bool=?
ellipsizeMode
~ellipsizeMode: [
  | `clip
  | `head
  | `middle
  | `tail
]=?
numberOfLines
~numberOfLines: int=?
onLayout
~onLayout: RNEvent.NativeLayoutEvent.t => unit=?

reference:

module NativeLayoutEvent: {
  type t;
  type layout = {
    x: float,
    y: float,
    width: float,
    height: float
  };
  let layout: t => layout;
};
onLongPress
~onLongPress: unit => unit=?
onPress
~onPress: unit => unit=?
pressRetentionOffset
~pressRetentionOffset: Types.insets=?

reference:

type insets = {
  .
  "left": int,
  "right": int,
  "top": int,
  "bottom": int,
};
selectable
~selectable: bool=?
style
~style: Style.t=?
testID
~testID: string=?
selectionColor
~selectionColor: string=?
textBreakStrategy
~textBreakStrategy: [
  | `balanced
  | `highQuality
  | `simple
]=?
adjustsFontSizeToFit
~adjustsFontSizeToFit: bool=?
minimumFontScale
~minimumFontScale: float=?
suppressHighlighting
~suppressHighlighting: bool=?
value
~value: string=?