react-native/Libraries
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
..
ART Better error for ART <Group /> 2016-12-07 17:13:42 -08:00
ActionSheetIOS Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
AdSupport Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
Alert Export Alert's type ButtonsArray for external use 2017-03-06 12:44:47 -08:00
Animated Fix Animated.event attach/detach on component re-render 2017-03-17 22:15:40 -07:00
AppState Fix the website build 2017-02-21 09:11:01 -08:00
BatchedBridge Ignore mocks in packager 2017-02-24 13:01:34 -08:00
BugReporting Patch up for future React Sync 2017-02-08 14:50:43 -08:00
CameraRoll fbobjc 2017-03-04 19:30:34 -08:00
Components Better TextInput: Fixing multiline <TextInput> insets and prepare for auto-expanding feature 2017-03-20 00:02:55 -07:00
Core Warn when timers longer than 1 min are set pending AlarmManager support 2017-03-16 15:19:02 -07:00
CustomComponents Fix typo in FlatList docs 2017-03-18 13:02:29 -07:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
EventEmitter RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
Experimental Move new components out of `Experimental` directory 2017-03-01 09:16:05 -08:00
Geolocation Update Geolocation.js 2017-01-31 11:58:30 -08:00
Image Expose RCTImageLocalAssetURL as a utility 2017-03-17 17:02:06 -07:00
Inspector work around inspector redbox due to Fiber 2017-02-21 15:45:45 -08:00
Interaction Fix license headers 2017-03-08 00:52:17 -08:00
JSInspector Add Network agent 2016-11-02 12:29:15 -07:00
LayoutAnimation Revert D4494386: [react-native][PR] BREAKING - Remove LayoutAnimation experimental flag on Android 2017-03-09 20:16:37 -08:00
Linking Fix linking manager library name in documentation 2017-03-06 00:45:25 -08:00
LinkingIOS Move RCTLinkingManager to the main thread 2017-03-16 16:02:38 -07:00
Modal Add property to force HW acceleration on Android for modal windows 2016-12-14 10:28:33 -08:00
NativeAnimation Native Animated - Support multiple events attached to the same prop 2017-03-09 15:30:28 -08:00
NavigationExperimental Add deprecation warning for NavigationExperimental 2017-03-02 11:00:46 -08:00
Network BREAKING: iOS: Support withCredentials flag in XHRs 2017-03-08 06:15:15 -08:00
Performance Support QuickPerformanceLogger.js in the old bridge 2017-02-16 11:33:48 -08:00
PermissionsAndroid inline a bunch of NativeModule requires 2017-02-17 16:49:38 -08:00
PushNotificationIOS Handle push notifications on iOS 2017-02-03 11:58:30 -08:00
RCTTest fbobjc 2017-03-04 19:30:34 -08:00
ReactNative YellowBox" Only provide elevation style prop when running on Android 2017-03-09 15:30:29 -08:00
Renderer Removed harmful optimization in ReactNativeEventEmitter 2017-03-19 21:46:48 -07:00
Sample Fix missing RCTBridgeModule.h 2017-01-31 11:13:50 -08:00
Settings Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
Share Update Share.js. Fixed bad grammar 2016-11-23 11:28:29 -08:00
Storage correctly order ASyncStorage 2017-02-21 15:18:40 -08:00
StyleSheet Add display:none support to react native 2017-03-01 09:16:05 -08:00
Text Better TextInput: Fixing multiline <TextInput> insets and prepare for auto-expanding feature 2017-03-20 00:02:55 -07:00
Utilities Introduce `DeviceInfo` as a new native module 2017-03-17 17:01:57 -07:00
Vibration Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
WebSocket Add RCTDevSettings module 2017-02-24 07:00:16 -08:00
react-native Introduce `DeviceInfo` as a new native module 2017-03-17 17:01:57 -07:00
vendor RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
Promise.js Allow Promise to display error strings and not just error objects. 2017-03-09 14:30:57 -08:00
promiseRejectionIsError.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00