我正在使用react Native Paper并扩展它的TextInput。我希望从the component导入组件的类型定义。
它的定义如下:
export declare type TextInputProps = React.ComponentPropsWithRef<typeof NativeTextInput> & {
... < The stuff I need
}
在我自己的功能组件中,如何获取?
我尝试了很多事情,例如:
const {TextInputProps} = TextInput;
或const whatINeed = TextInput.TextInputProps
有什么主意吗?