🚧 Text
Text Props
This roadmap outlines the necessary Text props to implement for SolidNative, along with their descriptions and type signatures.
iOS Specific Props
- [ ] adjustsFontSizeToFit: Specifies whether the font should be scaled down automatically to fit given style constraints.
- Type:
boolean | undefined
- Type:
- [ ] dynamicTypeRamp: The Dynamic Type scale ramp to apply to this element on iOS.
- Type:
'caption2' | 'caption1' | 'footnote' | 'subheadline' | 'callout' | 'body' | 'headline' | 'title3' | 'title2' | 'title1' | 'largeTitle' | undefined
- Type:
- [ ] suppressHighlighting: When true, no visual change is made when text is pressed down.
- Type:
boolean | undefined
- Type:
- [ ] lineBreakStrategyIOS: Set line break strategy on iOS.
- Type:
'none' | 'standard' | 'hangul-word' | 'push-out' | undefined
- Type:
Android Specific Props
- [ ] disabled: Specifies the disabled state of the text view for testing purposes.
- Type:
boolean | undefined
- Type:
- [ ] selectable: Lets the user select text to use the native copy and paste functionality.
- Type:
boolean | undefined
- Type:
- [ ] selectionColor: The highlight color of the text.
- Type:
ColorValue | undefined
- Type:
- [ ] textBreakStrategy: Set text break strategy on Android API Level 23+.
- Type:
'simple' | 'highQuality' | 'balanced' | undefined
- Type:
- [ ] dataDetectorType: Determines the types of data converted to clickable URLs in the text element.
- Type:
null | 'phoneNumber' | 'link' | 'email' | 'none' | 'all' | undefined
- Type:
- [ ] android_hyphenationFrequency: Hyphenation strategy.
- Type:
'normal' | 'none' | 'full' | undefined
- Type:
Common Text Props
- [ ] allowFontScaling: Specifies whether fonts should scale to respect Text Size accessibility settings.
- Type:
boolean | undefined
- Type:
- [ ] children: Child components.
- Type:
React.ReactNode | undefined
- Type:
- [ ] ellipsizeMode: Controls how text is truncated when it exceeds the container width.
- Type:
'head' | 'middle' | 'tail' | 'clip' | undefined
- Type:
- [ ] id: Used to reference react managed views from native code.
- Type:
string | undefined
- Type:
- [ ] lineBreakMode: Controls how text is truncated when it exceeds the container width.
- Type:
'head' | 'middle' | 'tail' | 'clip' | undefined
- Type:
- [ ] numberOfLines: Limits the number of lines of text.
- Type:
number | undefined
- Type:
- [ ] onLayout: Invoked on mount and layout changes.
- Type:
((event: LayoutChangeEvent) => void) | undefined
- Type:
- [ ] onTextLayout: Invoked on text layout.
- Type:
((event: NativeSyntheticEvent<TextLayoutEventData>) => void) | undefined
- Type:
- [ ] onPress: This function is called on press.
- Type:
((event: GestureResponderEvent) => void) | undefined
- Type:
- [ ] onPressIn: This function is called when a press is initiated.
- Type:
((event: GestureResponderEvent) => void) | undefined
- Type:
- [ ] onPressOut: This function is called when a press is released.
- Type:
((event: GestureResponderEvent) => void) | undefined
- Type:
- [ ] onLongPress: This function is called on long press.
- Type:
((event: GestureResponderEvent) => void) | undefined
- Type:
- [ ] style: Style for the text.
- Type:
StyleProp<TextStyle> | undefined
- Type:
- [ ] testID: Used to locate this view in end-to-end tests.
- Type:
string | undefined
- Type:
- [ ] nativeID: Used to reference react managed views from native code.
- Type:
string | undefined
- Type:
- [ ] maxFontSizeMultiplier: Specifies the largest possible scale a font can reach when allowFontScaling is enabled.
- Type:
number | null | undefined
- Type:
- [ ] minimumFontScale: Specifies the smallest possible scale a font can reach when adjustsFontSizeToFit is enabled.
- Type:
number | undefined
- Type: