Q:

How to focus same input after onSubmitEditing?

I want to focus again to the same input after onSubmitEditing function. But couldn't achieve yet. Any help would be appreciated.
Here is my code:
<Input
       ref='barcode'
       style={styles.barcodeInput}
       autoFocus={true}
       onChangeText={(text) => {
          this.setState({barcodeNumber: text});
       }}
       onSubmitEditing={(event)=> {
          this.getResult();
       }}
       placeholder='Barcode Number'/>

getResult(){
    if ( this.state.barcodeNumber === '021200507878' ){
        this.setState({backgroundColor: '#2ecc71', status:'success'});//green

    } else {
        this.setState({backgroundColor: '#c0392b', status:'error'}); //red
    }

    this.clearText('barcode');
}

clearText(fieldName) {

   this.refs[fieldName].setNativeProps({text: ''});
}

I know how to do it by button or by other input field's submit. But i can not do it with the same input.

A:

Oh, how fool i am. Just add the below line into the TextInput will work.
blurOnSubmit={false}

