I'm trying to declare a static variable in ReactNative but I cannot seem to get it work as I get this error message:
SyntaxError: /Users/vikaton/Desktop/iComeUp/src/components/LoginForm.js: static is a reserved word in strict mode (74:4)
9:37:20 PM:   72 | 
9:37:20 PM:   73 |   render() {
9:37:20 PM: > 74 |     static navigationOptions = {
9:37:20 PM:      |     ^
9:37:20 PM:   75 |       header: null
9:37:20 PM:   76 |     };
9:37:20 PM:   77 |     const { navigate } = this.props.navigation // fontFamily: 'heiti TC'
I added 'use strict'; at the top of my code but I still get the error message.
Any pointers?
 
    