Text
React Native for web provides access to browser-only style properties. The following styles apply to any primitive that extends `TextViewStylePropTypes` like `<TextInput />`.
Last updated
Was this helpful?
React Native for web provides access to browser-only style properties. The following styles apply to any primitive that extends `TextViewStylePropTypes` like `<TextInput />`.
Last updated
Was this helpful?
Sets the length of empty space (indentation) that is put before lines of text in a block.
number | string
Sets how hidden overflow content is signaled to users. It can be clipped, display an ellipsis ('…
'), or display a custom string.
string | 'each-line' | 'hanging' | Array<T>
Provides information to the rendering engine about what to optimize for when rendering text. The browser makes trade-offs among speed, legibility, and geometric precision.
'auto' | 'geometricPrecision' | 'optimizeLegibility' | 'optimizeSpeed'
The unicodeBidi
property, together with the direction
property, determines how bidirectional text in a document is handled. For example, if a block of content contains both left-to-right and right-to-left text, the user-agent uses a complex Unicode algorithm to decide how to display the text. The unicodeBidi
property overrides this algorithm and allows the developer to control the text embedding.
'normal','bidi-override','embed','isolate','isolate-override','plaintext'
string
Sets whether line breaks appear wherever the text would otherwise overflow its content box.
'normal', 'break-all', 'break-word', 'keep-all'
Applies to inline elements, setting whether the browser should insert line breaks within an otherwise unbreakable string to prevent text from overflowing its line box.
In CSS
word-wrap
is also known asoverflow-wrap
'normal' | 'anywhere' | 'break-word'
Controls the application of anti-aliasing when fonts are rendered.
string
Sets how inside an element is handled. Note: To make words break within themselves, use , , or instead.