How to set navigationOptions on stateless component with Typescript

后端 未结 4 1266
有刺的猬
有刺的猬 2020-12-16 13:18

I have a react component like

const Example = () => (...);

Using react-navigation I would normally apply naviga

4条回答
  •  北海茫月
    2020-12-16 13:40

    If the case is that you want the same navigation option for all your components, remember you can set the defaultNavigationOptions in the createStackNavigator. Here is the React Navigation API if you need an example.

提交回复
热议问题