react-native/Libraries/Components
Janic Duplessis 2537157d99 Implement TextInput onContentSizeChange
Summary:
This adds proper support for tracking a TextInput content size as discussed in #6552 by adding a new callback that is called every time the content size changes including when first rendering the view.

Some points that are up for discussion are what do we want to do with the onChange callback as I don't see any use left for it now that we can track text change in onChangeText and size changes in onContentSizeChange. Also a bit off topic but should we consider renaming onChangeText to onTextChange to keep the naming more consistent (see [this naming justification](https://twitter.com/notbrent/status/709445076850597888)).

This is split in 2 commits for easier review, one for iOS and one for android.

The iOS implementation simply checks if the content size has changed everytime we update it and fire the callback, the only small issue was that the content size had several different values on initial render so I added a check to not fire events before the layoutSubviews where at this point the value is g
Closes https://github.com/facebook/react-native/pull/8457

Differential Revision: D3528202

Pulled By: dmmiller

fbshipit-source-id: fefe83f10cc5bfde1f5937c48c88b10408e58d9d
2016-07-07 09:00:01 -07:00
..
ActivityIndicator Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
Clipboard Annotate Clipboard module 2016-02-15 10:05:34 -08:00
DatePicker Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
DatePickerAndroid Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08: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 Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
MapView Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
Navigation Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
Picker Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
ProgressBarAndroid Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
ProgressViewIOS Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
RefreshControl Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
ScrollView Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
SegmentedControlIOS Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
Slider Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
SliderIOS Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
StatusBar Improve autogen for reference docs including jsdoc support 2016-06-21 14:28:43 -07:00
Switch Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
SwitchAndroid Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
SwitchIOS Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
TabBarIOS TabBarIOS itemPositioning - Fixes #4136 2016-05-20 17:28:50 -07:00
TextInput Implement TextInput onContentSizeChange 2016-07-07 09:00:01 -07:00
TimePickerAndroid Fixed typo in docs 2016-04-06 08:55:20 -07:00
ToastAndroid Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ToolbarAndroid Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
Touchable Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
UnimplementedViews Quick fix to require cycle in UnimplementedView 2015-11-23 14:14:32 -08:00
View Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
ViewPager Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
WebView Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -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 Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -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 explicit type args in react-native-github 2016-05-24 18:28:26 -07:00
Subscribable.js [ReactNative] clean lint for Libraries/Components 2015-05-18 15:54:07 -08:00