Property |
Supported |
Supported on Roku |
Dynamic on Roku |
Notes |
Inherits responder props from View
|
|
|
|
|
numberOfLines |
~v |
~v |
~v |
|
selectable |
~x |
~x |
N/A |
|
accessible |
~v |
~v |
N/A |
|
accessibilityHint |
~v |
~v |
~x |
|
accessibilityLabel |
~v |
~v |
~x |
|
ellipsizeMode |
Partial |
~v |
~v |
Only tail and clip values are supported |
nativeID |
~v |
~x |
N/A |
|
onLayout |
~v |
~v |
N/A |
|
onLongPress |
~v |
~x |
N/A |
|
onPress |
~v |
~x |
N/A |
|
pressRetentionOffset |
~x |
~x |
N/A |
|
allowFontScaling |
~x |
~x |
~x |
|
style |
Partial |
No |
No |
|
testID |
~v |
~v |
N/A |
|
disabled |
~x |
~x |
~x |
|
selectionColor |
~x |
~x |
~x |
|
textBreakStrategy |
~x |
~x |
Not Possible |
|
adjustsFontSizeToFit |
~v |
~v |
~v |
See the note below |
minimumFontScale |
~v |
~v |
~v |
|
maxFontSizeMultiplier |
~x |
~x |
|
|
suppressHighlighting |
~x |
~x |
Not Possible |
|
Methods
Method |
Supported (not Roku) |
Supported on Roku |
Dynamic on Roku |
Notes |
isTruncated |
~v |
~v |
~v |
Returns whether the text was truncated because it didn’t fit into the given space. |
Note
There are rare cases, which depend on the font itself and the size used and where text appends an ellipsis on the Roku client, but not on the server:
- When the text fits perfectly into a desired number of lines on the server, but when rendered on the Roku client, an ellipsis may be added to maintain the number of lines.
- When the text on the Roku client renders slightly wider, or more narrowly, then on the Roku server, thus causing the unexpected ellipsis.