text
External Documentation
RNTextElement
text(
Text component
Implementation
RNTextElement text(
String content, {
Map<String, dynamic>? style,
Map<String, dynamic>? props,
void Function()? onPress,
}) {
final p = <String, dynamic>{};
if (style != null) p['style'] = style;
if (onPress != null) p['onPress'] = onPress;
if (props != null) p.addAll(props);
return RNTextElement.fromJS(rnElement('Text', props: p, child: content.toJS));
}