所以我在reactnative是新手,我构建了一个自定义文本输入,通过遵循tutorial.But给出建议。现在我不能在自定义文本输入中使用onChange。我尝试在App.js中创建状态并在AutoCompleteText.js文件中更改它,但没有worked.How我可以在自定义文本输入中获取值吗?我的App.js文件:import React from
Did you mean 'typeof TextInput'?在使用useRef引用它时,如下所示: const lastNameRef = useRef<TextInput>(null) 下面是TextInput的样子: import React, { forwardRef} from "react" TextInput as ReactTextInput,
TextInputProps