diff --git a/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.m b/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.m index ec473bcef5df4f..e31891e1780994 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.m +++ b/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.m @@ -515,13 +515,15 @@ - (void)textInputDidChangeSelection } RCTTextSelection *selection = self.selection; + UITextRange *selectedTextRange = self.backedTextInputView.selectedTextRange; + CGPoint selectionOrigin = [self.backedTextInputView caretRectForPosition:selectedTextRange.start].origin; _onSelectionChange(@{ @"selection" : @{ @"start" : @(selection.start), @"end" : @(selection.end), - @"positionY": @(selectionOrigin.y), - @"positionX": @(selectionOrigin.x), + @"cursorPositionY": @(selectionOrigin.y), + @"cursorPositionX": @(selectionOrigin.x), }, }); }