react-native/Libraries/Components
Valentin Shergin 1b013cd30c Better TextInput: Fixing multiline <TextInput> insets and prepare for auto-expanding feature
Summary:
Several things:
 * The mess with insets was fixed. Previously we tried to compensate the insets difference with `UITextField` by adjusting `textContainerInset` property, moreover we delegated negative part of this compensation to the view inset. That was terrible because it breaks `contentSize` computation, complicates whole insets consept, complicates everything; it just was not right. Now we are fixing the top and left inset differences in different places. We disable left and right 5pt margin by setting `_textView.textContainer.lineFragmentPadding = 0` and we introduce top 5px inset as a DEFAULT value for top inset for common multiline <TextInput> (this value can be easilly overwritten in Javascript).
 * Internal layout and contentSize computations were unified and simplified.
 * Now we report `intrinsicContentSize` value to Yoga, one step before auto-expandable TextInput.

Depends on D4640207.

Reviewed By: mmmulani

Differential Revision: D4645921

fbshipit-source-id: da5988ebac50be967caecd71e780c014f6eb257a
2017-03-20 00:02:55 -07:00
..
AccessibilityInfo Finish AccessibilityInfo implementation 2017-02-27 18:34:19 -08:00
ActivityIndicator RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
AppleTV Apple TV support 4: support for input (tvOS focus engine) 2016-12-19 06:28:40 -08:00
Clipboard Remove deprecated APIs and modules 2016-10-11 07:43:52 -07:00
DatePicker fbobjc 2017-03-04 19:30:34 -08:00
DatePickerAndroid Fix formatting in DatePickerAndroid.open docs 2017-02-27 18:34:19 -08:00
DrawerAndroid RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
Keyboard fbobjc 2017-03-04 19:30:34 -08:00
Navigation fbobjc 2017-03-04 19:30:34 -08:00
Picker fbobjc 2017-03-04 19:30:34 -08:00
ProgressBarAndroid RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
ProgressViewIOS fbobjc 2017-03-04 19:30:34 -08:00
RefreshControl fbobjc 2017-03-04 19:30:34 -08:00
ScrollView Sticky headers are no longer ios-only 2017-03-10 13:32:45 -08:00
SegmentedControlIOS fbobjc 2017-03-04 19:30:34 -08:00
Slider fbobjc 2017-03-04 19:30:34 -08:00
StatusBar android now supports barStyle 2017-03-01 13:32:16 -08:00
Switch fbobjc 2017-03-04 19:30:34 -08:00
TabBarIOS Add TabBarIOS.Item on Android 2017-03-06 10:10:11 -08:00
TextInput Better TextInput: Fixing multiline <TextInput> insets and prepare for auto-expanding feature 2017-03-20 00:02:55 -07:00
TimePickerAndroid Clean unused import modules. 2016-10-16 11:13:40 -07:00
ToastAndroid Add very basic usage example for android toast 2016-09-19 06:43:54 -07:00
ToolbarAndroid RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
Touchable Fixes spelling mistake inside TouchableNativeFeedback.android.js 2017-03-13 12:31:41 -07:00
UnimplementedViews Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
View fbobjc 2017-03-04 19:30:34 -08:00
ViewPager RN: Stop Deep Linking `ReactElement` 2016-10-14 18:59:10 -07:00
WebView Added option to set mixed content mode in android webview 2017-03-08 06:45:22 -08:00
Button.js Add disabled to accessibilityTraits in case button is disabled 2017-02-22 13:16:02 -08:00
LazyRenderer.js Cleanup: Prefer `React.Element` over `React$?Element` 2016-10-14 08:59:37 -07:00
ScrollResponder.js Support ScrollView.scrollToEnd on Android natively 2017-01-30 10:28:32 -08:00
StaticContainer.react.js Rename files to match @providesModule annotations 2017-02-03 15:58:58 -08:00
StaticRenderer.js Reverted commit D4027388 2016-10-16 04:13:42 -07:00
Subscribable.js [ReactNative] clean lint for Libraries/Components 2015-05-18 15:54:07 -08:00