You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to integrate this into a React app, and I am noticing that the keyboard opens, closes, and then opens again and the whole viewport resizes and looks awful.
This is when running the keyboard launch in the render() method - is there a better way to launch the keyboard in React? React Cordova apps are relatively rare and I'm not seeing many instances of how to handle this.
The text was updated successfully, but these errors were encountered:
If you are using React Hooks, useEffect with nothing in the dependency array would be equivalent to componentDidMount. Use a useEffect cleanup method would be the same as componentWillUnmount.
useEffect(() => {
// Put your show keyboard code in here
return () => {
// Put your componentWillUnmount code here
}
}, [])
I am trying to integrate this into a React app, and I am noticing that the keyboard opens, closes, and then opens again and the whole viewport resizes and looks awful.
This is when running the keyboard launch in the render() method - is there a better way to launch the keyboard in React? React Cordova apps are relatively rare and I'm not seeing many instances of how to handle this.
The text was updated successfully, but these errors were encountered: