Dismiss keyboard in multiline TextInput in React native

后端 未结 5 1386
悲&欢浪女
悲&欢浪女 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条回答
  •  猫巷女王i
    2020-12-14 15:38

    TextInput has a blurOnSubmit prop; when set to true, the return key dismisses the keyboard.

    However currently the prop does not work on Android. I've posted an issue on the subject: https://github.com/facebook/react-native/issues/8778

提交回复
热议问题