score:1

Accepted answer
 <TextInput  
  {...componentProps}
  style={[{color: defaultColor, borderColor: defaultColor}, styles.defaultTextInputStyle, textInputStyle]}
  onChangeText={text => onChangeHandler(text)}
  value={value}
  /> 

score:0

const { other1, other2, ...rest } = props

<TextInput  
  {...rest}
  style={[{color: defaultColor, borderColor: defaultColor}, styles.defaultTextInputStyle, textInputStyle]}
  onChangeText={text => onChangeHandler(text)}
  value={value}
 /> 

score:1

const Comp2 = () => {
  const { notThis, ...rest } = textInputFieldProps;
  return  <TextInput {...rest} />
};

Related Query

More Query from same tag