Changeset View
Changeset View
Standalone View
Standalone View
native/components/clearable-text-input.react.js
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | class ClearableTextInput extends React.PureComponent<ClearableTextInputProps> { | ||||
render(): React.Node { | render(): React.Node { | ||||
const { textInputRef, ...props } = this.props; | const { textInputRef, ...props } = this.props; | ||||
return ( | return ( | ||||
<View style={styles.textInputContainer}> | <View style={styles.textInputContainer}> | ||||
<TextInput | <TextInput | ||||
{...props} | {...props} | ||||
onChangeText={this.onChangeText} | onChangeText={this.onChangeText} | ||||
onSelectionChange={this.props.onSelectionChange} | |||||
ref={this.textInputRef} | ref={this.textInputRef} | ||||
/> | /> | ||||
</View> | </View> | ||||
); | ); | ||||
} | } | ||||
textInputRef: ( | textInputRef: ( | ||||
textInput: ?React.ElementRef<typeof BaseTextInput>, | textInput: ?React.ElementRef<typeof BaseTextInput>, | ||||
Show All 13 Lines |