If your multiline input is partially covered by the keyboard and you select text inside this input, then selection can go under the keyboard and you will not understand what you are selecting.
Code snippet
KeyboardAwareScrollView example.
Repo for reproducing
Can be reproduced in example app.
To Reproduce
Steps to reproduce the behavior:
Go to KeyboardAwareScrollView example
Click on TextInput#5
Type 10 lines of text
Scroll down, to make visible only one line of the text
Describe the bug
If your multiline input is partially covered by the keyboard and you select text inside this input, then selection can go under the keyboard and you will not understand what you are selecting.
Code snippet
KeyboardAwareScrollView
example.Repo for reproducing
Can be reproduced in example app.
To Reproduce Steps to reproduce the behavior:
KeyboardAwareScrollView
exampleExpected behavior
On web for example we have following behavior:
https://github.com/kirillzyusko/react-native-keyboard-controller/assets/22820318/ab82f7fe-8bf9-4ec9-9f3b-41e642a3a7bc
Screenshots
Smartphone (please complete the following information):
Additional context
I think this library should expose additional handler in
useFocusedInputHandler
:That will be fired whenever position of the carret will be changed. Also probably we'll need to include
x
/y
coordinates for first and last carret.