react native props上存在的属性,显示不存在

问题:类型“Readonly<{}> & Readonly<{ children?: ReactNode; }>”上不存在属性“navigation”。ts(2339)
解决方法:
export default class Brand extends React.Component<any, BrandState>
把props传递为any就行了
 
 

posted on 2019-07-04 19:02  杨龙飞  阅读(2463)  评论(0编辑  收藏  举报

导航

Fork me on GitHub