EddyVerbruggen/cordova-plugin-native-keyboard

What part of the React lifecycle is the best place to run the code to show the keyboard?

Open

#102 opened on Jun 14, 2019

 (3 comments) (0 reactions) (0 assignees)Objective-C (64 forks)github user discovery
help wantedquestion

Repository metrics

Stars
 (270 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide