2017-06-17 25 views

回答

0

我不認爲鍵盤將覆蓋所有的輸入字段,至少其中一個在頂部將是可見的。

試試這個,把焦點放在最後一個onSubmitEditing上的下一個文本輸入上。

<TextInput 
    style = {styles.titleInput} 
    returnKeyType = {"next"} 
    autoFocus = {true} 
    placeholder = "Title" 
    onSubmitEditing={(event) => { 
    this.refs.SecondInput.focus(); 
    }} 
/> 
<TextInput 
    ref='SecondInput' 
    style = {styles.descriptionInput}   
    multiline = {true} 
    maxLength = {200} 
    placeholder = "Description" /> 
相關問題