this.setState is not a function. (In 'this.setState({ isLoginMode: false })', 'this.setState' is undefined) code example
Example: this.setstate is not a function in react native
constructor(props) {
super(props)
this.onClick = this.onClick.bind(this)
}
onClick () {
this.setState({...})
}