Dismiss keyboard in multiline TextInput in React native

后端 未结 5 1385
悲&欢浪女
悲&欢浪女 2020-12-14 15:29

When the user presses the Return key in a multiline TextInput, a new line is created and the keyboard continues to be visible. How should the keybo

5条回答
  •  无人及你
    2020-12-14 15:35

    To complete my comment about returnKeyType, you also need to set blurOnSubmit={true} which will trigger onSubmitEditing event handler too when Done is pressed.

    See example https://rnplay.org/apps/0HIrmw for details.

提交回复
热议问题