textInput
External Documentation
RNTextInputElement
textInput(
TextInput component
Implementation
RNTextInputElement textInput({
String? value,
String? placeholder,
bool? secureTextEntry,
void Function(String)? onChangeText,
Map<String, dynamic>? style,
Map<String, dynamic>? props,
}) {
final p = <String, dynamic>{};
if (value != null) p['value'] = value;
if (placeholder != null) p['placeholder'] = placeholder;
if (secureTextEntry != null) p['secureTextEntry'] = secureTextEntry;
if (onChangeText != null) {
p['onChangeText'] = ((JSString t) => onChangeText(t.toDart)).toJS;
}
if (style != null) p['style'] = style;
if (props != null) p.addAll(props);
return RNTextInputElement.fromJS(rnElement('TextInput', props: p));
}