从组件导入“导出声明类型”

问题描述

我正在使用react Native Paper并扩展它的TextInput。我希望从the component导入组件的类型定义。@H_502_1@

它的定义如下:@H_502_1@

export declare type TextInputProps = React.ComponentPropsWithRef<typeof NativeTextInput> & {
   ... < The stuff I need
}

在我自己的功能组件中,如何获取?@H_502_1@

我尝试了很多事情,例如:@H_502_1@

const {TextInputProps} = TextInput;

const whatINeed = TextInput.TextInputProps @H_502_1@

有什么主意吗?@H_502_1@

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)