Fix the 'end' value in the onTextInput callback for onscreen keyboard

Summary:
public
The 'end' value in the onTextInput callback was incorrectly computed.  It now is correct.  The value of start and end are relative to the entirety of the entire prechange text in the text input.

Reviewed By: andreicoman11

Differential Revision: D2815064

fb-gh-sync-id: e9f9c84cc5836042d0ffcccc991df72b725ab994
This commit is contained in:
Dave Miller 2016-01-08 05:04:26 -08:00 committed by facebook-github-bot-9
parent 5a3b272f7e
commit 8ecd352bbf

View File

@ -376,7 +376,7 @@ public class ReactTextInputManager extends
newText,
oldText,
start,
count > 0 ? start + count - 1 : start + before));
start + before));
}
@Override