如何创建一个像这样工作的模态组件one
有一个很好的教程here on how to make the drawer from scratch. You can then add then add a <TextInput ref={ref} /> component with a ref assigned and use the focus() method on it once the drawer is opened. More on the TextInput here。
<TextInput ref={ref} />
focus()