首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“IntrinsicAttributes& Props &{IntrinsicAttributes?:ReactNode;}”类型上不存在属性“”Props“”

“IntrinsicAttributes& Props &{IntrinsicAttributes?:ReactNode;}”类型上不存在属性“”Props“”
EN

Stack Overflow用户
提问于 2021-04-18 04:29:00
回答 1查看 699关注 0票数 2

嘿,伙计们,我从typescript中得到了这个错误:Property does not exist on type 'IntrinsicAttributes & { children?: ReactNode; }',我导出了一个默认的接口,叫做iCustomer,我可以在我的项目中使用它。但现在我把它导入了CustomerViewList,因为我懒得在输入道具的时候重复我自己。

在那之后,我想导入视图并在我的平面列表上使用它,现在我得到了这个错误。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-04-18 04:52:40

Typescript告诉你CustomerViewList没有一个叫做"customerCode“的道具。看起来你已经定义了两个道具,customeronPress

您应该能够编写renderItem={({item}) => <CustomerViewList customer={item} onPress={onPress} /> }

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67142673

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档