Skip to content

[iOS] add caretHeight and caretYoffset to TextInput component #37147#58

Open
OlimpiaZurek wants to merge 4 commits intoExpensify:ExpensifyRC1-0.72.0-alpha.0from
OlimpiaZurek:feature/fix-caret-position
Open

[iOS] add caretHeight and caretYoffset to TextInput component #37147#58
OlimpiaZurek wants to merge 4 commits intoExpensify:ExpensifyRC1-0.72.0-alpha.0from
OlimpiaZurek:feature/fix-caret-position

Conversation

@OlimpiaZurek
Copy link
Copy Markdown

Upstream PR Link

facebook#37147

Summary

This PR adds support for the caretHeight and caretPosition properties in iOS multi-line TextInput. Based on these values, we can calculate the caret position and height and adjust them in the appl so that the cursor does not overlap the previous line of text.

Changelog

[IOS] [ADDED] - caretHeight and caretPosition for multiline TextInput component

Test Plan

Default caret:

default_caret.mov

Caret with caretHeight and caretYOffsetadjustment:

adjusting_caret.mov

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants