TypeError: (0, _react Native.setState) is not a function. (In '(0, _reactNative.useState)(true)', '(0, _reactNative.useState)' 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({...})
}