Reputation: 520
I want to use static navigationOptions ={title='blabla'}
without writing in class. For example like so
const Screen = () =>{
static navigationOptions = {title = 'blabla'};
}
How can I handle this?
Upvotes: 0
Views: 141
Reputation: 372
Below code should work :
Screen.navigationOptions = { options }
Or second option
Screen.navigationOptions = ({navigation}) => ({options});
Upvotes: 3