Skip to content

Library does not work with inputs that cover entire screen #578

Open
@nicolaosm

Description

@nicolaosm

Describe the bug
When using a large multi-line text input field, the view does not automatically scroll to the cursor when it is placed somewhere within the text. This issue occurs particularly when the text field is large in height.

Code snippet
This issue can be reproduced with any basic text input field that has a height of 900 units or more.

To Reproduce
Steps to reproduce the behavior:

  1. Create a TextInput field with a height of 900 units.
  2. Fill the input with enough text to require scrolling.
  3. Place the caret (cursor) at a position within the text that is not currently visible on the screen.

Expected behavior
The view should automatically scroll to make the cursor visible whenever it is placed within the text.

Screenshots
A video demonstrating the issue:: https://cln.sh/HLlnFNpZ

Smartphone (please complete the following information):

  • Device: any iphone or android
  • RN version: 0.74.3
  • RN architecture: old
  • Library version: 1.13.3 (latest)

Metadata

Metadata

Assignees

Labels

KeyboardAwareScrollView 📜Anything related to KeyboardAwareScrollView componentrepro providedIssue contains reproduction repository/code🐛 bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions