问题描述
我正在使用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@
const {TextInputProps} = TextInput;
或const whatINeed = TextInput.TextInputProps
@H_502_1@
有什么主意吗?@H_502_1@
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)