Open Holalko opened 2 months ago
Hey @Holalko
I tried to paste your code into my example app, but everything works fine there and I always have a constant offset between keybaord and TextInput:
Am I missing anything?
Thanks @kirillzyusko .. so i guess its an issue with our setup or something.. we use expo, nativewind.. will try to create an example app
@Holalko thank you ā¤ļø
@kirillzyusko so i have created a simple repro
https://github.com/Holalko/react-native-keyboard-controller-repro-example
The issue is still there but its much harder to reproduce - but in our production repo this happens more often and sometimes the offset is a lot bigger than just few pixels
Video on google cuz too big for GH: https://drive.google.com/file/d/14d_5YyHsGBn6zIp3eInjAsR4R3FrzhwB/view?usp=sharing
You can see the issue at 0:26 or 1:13
Thanks @Holalko š
I'll test your example app tomorrow - let's see if I can reproduce it š
@Holalko I cloned your repo did everything as per your guide (excluding npm i
- it failed so I used yarn
), but I'm not able to reproduce the issue: https://youtu.be/mZUrr9zPERo (tested on iPhone 11 Pro, iOS 17.4.1)
Maybe I'm missing something? Can you reproduce it on simulator as well?
Describe the bug Input is hidden behind keyboard autocomplete when set to "email"
Code snippet
Repo for reproducing I would be highly appreciate if you can provide repository for reproducing your issue. It can significantly reduce the time for discovering and fixing the problem.
To Reproduce
Expected behavior Input is fully visible
Screenshots
https://github.com/kirillzyusko/react-native-keyboard-controller/assets/41758677/e28def1a-6573-4833-bdc2-355a11ff524f
Smartphone (please complete the following information):
Additional context It works correctly without autocomplete hint
EDIT:
I tried to console.log the
useKeyboardHandler
and it seems it firesstart
twice but the scroll only reflects the firstThis are the logs from single input focus