react-native/Libraries/Components
Janic Duplessis f0a3c56048 Add TextInput controlled selection prop on iOS
Summary:
This adds support for a controlled `selection` prop on `TextInput` on iOS (Android PR coming soon). This is based on the work by ehd in #2668 which hasn't been updated for a while, kept the original commit and worked on fixing what was missing based on the feedback in the original PR.

What I changed is:
- Make the prop properly controlled by JS
- Add a RCTTextSelection class to map the JS object into and the corresponding RCTConvert category
- Make sure the selection change event is properly triggered when the input is focused
- Cleanup setSelection
- Changed TextInput to use function refs to appease the linter

** Test plan **
Tested using the TextInput selection example in UIExplorer on iOS.
Also tested that it doesn't break Android.
Closes https://github.com/facebook/react-native/pull/8958

Differential Revision: D3771229

Pulled By: javache

fbshipit-source-id: b8ede46b97fb3faf3061bb2dac102160c4b20ce7
2016-08-25 17:28:37 -07:00
..
ActivityIndicator Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Clipboard Annotate Clipboard module 2016-02-15 10:05:34 -08:00
DatePicker Auto-fix lint errors 2016-08-09 06:43:46 -07:00
DatePickerAndroid Auto-fix lint errors 2016-08-09 06:43:46 -07:00
DrawerAndroid Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
Intent Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Keyboard Auto-fix lint errors 2016-08-09 06:43:46 -07:00
MapView Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Navigation NavigatorIOS docs: need to import PropTypes 2016-08-01 11:58:36 -07:00
Picker Auto-fix lint errors 2016-08-09 06:43:46 -07:00
ProgressBarAndroid Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
ProgressViewIOS Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
RefreshControl Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
ScrollView Updated ScrollView's keyboardShouldPersistTaps doc 2016-07-28 12:43:34 -07:00
SegmentedControlIOS Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Slider Auto-fix lint errors 2016-08-09 06:43:46 -07:00
SliderIOS Auto-fix lint errors 2016-08-09 06:43:46 -07:00
StatusBar Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Switch Auto-fix lint errors 2016-08-09 06:43:46 -07:00
SwitchAndroid Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
SwitchIOS Auto-fix lint errors 2016-08-09 06:43:46 -07:00
TabBarIOS Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
TextInput Add TextInput controlled selection prop on iOS 2016-08-25 17:28:37 -07:00
TimePickerAndroid Fixed typo in docs 2016-04-06 08:55:20 -07:00
ToastAndroid Add support for layout gravity to ToastAndroid 2016-07-20 08:13:37 -07:00
ToolbarAndroid Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
Touchable Reverted commit D3735237 2016-08-24 08:43:42 -07:00
UnimplementedViews Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
View Fix bad link typo in View document 2016-07-31 07:28:23 -07:00
ViewPager Auto-fix lint errors 2016-08-09 06:43:46 -07:00
WebView Auto-fix lint errors 2016-08-09 06:43:46 -07:00
LazyRenderer.js Decrease TTRR (time to relay request) by lazy rendering fake group header 2016-04-17 15:04:19 -07:00
ScrollResponder.js Auto-fix lint errors 2016-08-09 06:43:46 -07:00
StaticContainer.js Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
StaticRenderer.js Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
Subscribable.js [ReactNative] clean lint for Libraries/Components 2015-05-18 15:54:07 -08:00