Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TextProperties

Indexable

[key: string]: any

key for others property.

Index

Properties

Optional accessible

accessible: undefined | true | false

When set to true, indicates that the view is an accessibility element. The default value for a Text element is true. When set to true, indicates that the view is an accessibility element. The default value for a Text element is true.

Optional adjustsFontSizeToFit

adjustsFontSizeToFit: undefined | true | false

Specifies whether font should be scaled down automatically to fit given style constraints. It is for ios only Specifies whether font should be scaled down automatically to fit given style constraints. It is for ios only

Optional allowFontScaling

allowFontScaling: undefined | true | false

Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true. Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.

Optional disabled

disabled: undefined | true | false

Specifies the disabled state of the text view for testing purposes It is for android only Specifies the disabled state of the text view for testing purposes It is for android only

Optional ellipsizeMode

ellipsizeMode: "head" | "middle" | "tail" | "clip"

When numberOfLines is set, this prop defines how text will be truncated. numberOfLines must be set in conjunction with this prop. When numberOfLines is set, this prop defines how text will be truncated. numberOfLines must be set in conjunction with this prop.

Optional minimumFontScale

minimumFontScale: undefined | number

Specifies smallest possible scale a font can reach when adjustsFontSizeToFit is enabled. (values 0.01-1.0). It is for ios only Specifies smallest possible scale a font can reach when adjustsFontSizeToFit is enabled. (values 0.01-1.0). It is for ios only

Optional nativeID

nativeID: undefined | string

Used to locate this view from native code. Used to locate this view from native code.

Optional numberOfLines

numberOfLines: undefined | number

Used to truncate the text with an ellipsis after computing the text layout, including line wrapping, such that the total number of lines does not exceed this number. Used to truncate the text with an ellipsis after computing the text layout, including line wrapping, such that the total number of lines does not exceed this number.

Optional onLayout

onLayout: undefined | function

Invoked on mount and layout changes with Invoked on mount and layout changes with

Optional onLongPress

onLongPress: undefined | function

This function is called on long press. This function is called on long press.

Optional onPress

onPress: undefined | function

This function is called on press. This function is called on press.

Optional pressRetentionOffset

pressRetentionOffset: undefined | object

When the scroll view is disabled, this defines how far your touch may move off of the button, before deactivating the button When the scroll view is disabled, this defines how far your touch may move off of the button, before deactivating the button

Optional selectable

selectable: undefined | true | false

Lets the user select text, to use the native copy and paste functionality. Lets the user select text, to use the native copy and paste functionality.

Optional selectionColor

selectionColor: ColorProperties

The highlight color of the text. It is for android only The highlight color of the text. It is for android only

Optional style

style: undefined | object

It is used for styling the object It is used for styling the object

Optional suppressHighlighting

suppressHighlighting: undefined | true | false

When true, no visual change is made when text is pressed down. By default, a gray oval highlights the text on press down. It is for ios only When true, no visual change is made when text is pressed down. By default, a gray oval highlights the text on press down. It is for ios only

Optional testID

testID: undefined | string

Used to locate this view in end-to-end tests. Used to locate this view in end-to-end tests.

Optional textBreakStrategy

textBreakStrategy: "simple" | "highQuality" | "balanced"

Set text break strategy on Android, possible values are simple, highQuality, balanced The default value is highQuality. It is for android only Set text break strategy on Android, possible values are simple, highQuality, balanced The default value is highQuality. It is for android only

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc