📅  最后修改于: 2022-03-11 15:02:44.989000             🧑  作者: Mango
const inputRef = useRef(null)
In onSubmitEditing prop, include this:
setTimeout(() => inputRef.current.focus(), 250);
Ex:
const onEnterKeyPressed = () => {
...
setTimeout(() => inputRef.current.focus(), 100);
...
}