From 5938e16248092c19c419de62ad50be2921bfbdc7 Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Thu, 2 Feb 2017 04:46:27 -0800 Subject: [PATCH] Document arguments to onSelectionChange Summary: To update the documentation. Works on iOS, so I assume this is the same on Android. Closes https://github.com/facebook/react-native/pull/11575 Differential Revision: D4494464 Pulled By: mkonicek fbshipit-source-id: c7480d39ed0849401efaa080948c14fa0cb7a08d --- Libraries/Components/TextInput/TextInput.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 7a094e3c0..88e6a16bb 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -367,6 +367,8 @@ const TextInput = React.createClass({ onEndEditing: PropTypes.func, /** * Callback that is called when the text input selection is changed. + * This will be called with + * `{ nativeEvent: { selection: { start, end } } }`. */ onSelectionChange: PropTypes.func, /**