我有一个react组件,比如 const Example = () => (<View>...</View>); 使用react导航时,我通常会这样应用导航选项: Example.navigationOptions = { options }; 对于typescript,我得到了错误 [ts]Property 'navigationOptions' does not exist on type '(props: Props) =>
我正在使用流类型,并有一个memo包装的功能组件,但是当尝试为react导航分配navigationOptions时,flow就变得混乱了:const navigationOptions// more stuff
...Here it breaks down
Cannot assign `navigationOptions` t