Open abdelfattah10 opened 5 years ago
Can try setTimeout
?
setTimeout(() => {
this._panel.show();
}, 240)
This is actually just wait for the keyboard is shown up before triggering the animation. I suggest don't show the panel when focus on text input. When the keyboard is showing up, it changes the layout and cause the panel calculates its next position wrongly.
Showing the panel when text input is focused would be a great feature, so something like this can be achieved.
The timeout "hack" works but seems not optimal.
P.S. thanks for the awesome work.
This will not work
<TextInput onFocus={() => this._panel.show()} />
And after passing avoidKeyboard={false} prop, animation is very laggy.