textInput

External Documentation

RNTextInputElement textInput({

  1. String? value,
  2. String? placeholder,
  3. bool? secureTextEntry,
  4. void onChangeText(
    1. String
    )?,
  5. Map<String, dynamic>? style,
  6. Map<String, dynamic>? props,
})

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));
}