Uh oh!
There was an error while loading. Please reload this page.
[iOS] add caretHeight and caretYoffset to TextInput component #37147 - #58
Conversation
There was a problem hiding this comment.
shouldn't be toTextInput.caretHeight = fromTextInput.caretHeight here?
0f17587 to
b85913bCompare
Santhosh-Sellavel
left a comment
There was a problem hiding this comment.
Adding myself as a reviewer!
Santhosh-Sellavel
commented
May 29, 2023
Looking good so far, I'll test it out tomorrow. Sorry missing track of these, can anyone mention me here so I can pin the notifications to keep track of it. |
alex-mechler
commented
May 30, 2023
@Santhosh-Sellavel here's your ping |
Santhosh-Sellavel
commented
May 30, 2023
Looks great! Simulator.Screen.Recording.-.iPhone.14.-.2023-05-31.at.00.52.53.mp4 |
alex-mechler
commented
May 30, 2023
Hmm, I have not seen that before. Looks like its normally skipped. Will ask around |
| * @platform ios | ||
| */ | ||
| smartInsertDelete?: ?boolean, | ||
| /** |
There was a problem hiding this comment.
NAB: Missing a blank line before this comment
| #import <React/RCTBackedTextInputDelegateAdapter.h> | ||
| #import <React/RCTTextAttributes.h> | ||
| //the UITextSelectionRect subclass needs to be created because the original version is not writable |
There was a problem hiding this comment.
NAB:
| //the UITextSelectionRect subclass needs to be created because the original version is not writable | |
| //the UITextSelectionRect subclass needs to be created because the original version is not writable |
alex-mechler
commented
May 30, 2023
Tested well, we can ignore the @OlimpiaZurek Can you update the base to be |
AndrewGable
commented
Jun 5, 2023
Please target |
Santhosh-Sellavel
commented
Jun 5, 2023
@OlimpiaZurek bump! |
1 similar comment
Santhosh-Sellavel
commented
Jun 7, 2023
@OlimpiaZurek bump! |
Santhosh-Sellavel
commented
Jun 7, 2023
@alex-mechler Can you give a bump on any internal channels for callstack! |
alex-mechler
commented
Jun 7, 2023
Actually, we might not need to, based on. https://expensify.slack.com/archives/C01GTK53T8Q/p1686159512184629. We are moving towards deprecating our fork of RN |
AndrewGable
commented
Jun 8, 2023
FYI I have bumped the upstream PR with Meta |
Santhosh-Sellavel
commented
Jul 23, 2023
@AndrewGable Can you bump again? |
AndrewGable
commented
Jul 24, 2023
@OlimpiaZurek - Can you fix the upstream PR's conflicts and then I can reach out again? Thanks. |
AndrewGable
commented
Jul 24, 2023
Or @koko57 since you might have access to the fork? Thanks |
koko57
commented
Jul 24, 2023
Yes, I will take care of this tomorrow 😊 |
koko57
commented
Jul 25, 2023
@AndrewGable all conflicts are resolved in the upstream PR, the target branch is changed here for |
AndrewGable
commented
Jul 25, 2023
Thank you, bumped the upstream PR for a review via Discord! |
Santhosh-Sellavel
commented
Aug 11, 2023
@AndrewGable Still no review. Can you bump them again, thanks! |

Upstream PR Link
react#37147
Summary
This PR adds support for the
caretHeightandcaretPositionproperties 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
caretHeightandcaretYOffsetadjustment:adjusting_caret.mov