react-native-macos/Libraries
Samuel Susla e68f9bf768 Calling Paper TextInput setTextAndSelection view command now dirties layout
Summary:
Changelog: [Internal]

Previously `setTextAndSelection` was not dirtying layout. This would cause an issue where `setTextAndSelection` causes layout change. For example calling setTextAndSelection with empty string on a multiline auto expanding text input.

I changed one example in TextInputSharedExamples.js, "Live Re-Write (no spaces allowed) and clear" example is now multiline. This allows to test whether `setTextAndSelection` dirties layout. Enter multiline string to to the example text input and press clear. Observe that the text input shrinks to single line height.

Reviewed By: shergin

Differential Revision: D21182990

fbshipit-source-id: de8501ea0b97012cf4cdf8d5f658649139f92da6
2020-04-27 03:23:34 -07:00
..
ART PlatformColor implementations for iOS and Android (#27908) 2020-03-02 15:12:09 -08:00
ActionSheetIOS Make ColorValue public in StyleSheet.js 2020-04-17 13:03:47 -07:00
Alert Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Animated Animated: Early detection of division by zero in AnimatedDivision 2020-04-11 03:04:14 -07:00
AppState Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
BatchedBridge Upgrade Prettier in Xplat to version 1.19.1 2020-04-09 11:01:58 -07:00
Blob Part 2: Update ObjC++ codegen classes to use ObjCTurboModule::InitParams 2020-04-16 17:29:55 -07:00
BugReporting Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
CameraRoll Part 2: Update ObjC++ codegen classes to use ObjCTurboModule::InitParams 2020-04-16 17:29:55 -07:00
Components Support `contentOffset` property in Android's ScrollView and HorizontalScrollView 2020-04-23 15:39:45 -07:00
Core Remove unused fields from error dialog 2020-04-03 19:58:32 -07:00
DeprecatedPropTypes Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
EventEmitter Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
FBLazyVector make RN infra labels public 2020-02-28 12:46:49 -08:00
FBReactNativeSpec Part 1: Update ObjC++ codegen classes to use ObjCTurboModule::InitParams 2020-04-16 17:29:55 -07:00
HeapCapture Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Image Fix image instrumentation internal lifecycle 2020-04-27 01:39:49 -07:00
Inspector Enable inspector for Fabric 2020-03-30 14:05:27 -07:00
Interaction Upgrade Prettier in Xplat to version 1.19.1 2020-04-09 11:01:58 -07:00
JSInspector Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
LayoutAnimation Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Linking Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
LinkingIOS Part 2: Update ObjC++ codegen classes to use ObjCTurboModule::InitParams 2020-04-16 17:29:55 -07:00
Lists Upgrade Prettier in Xplat to version 1.19.1 2020-04-09 11:01:58 -07:00
LogBox Upgrade Prettier in Xplat to version 1.19.1 2020-04-09 11:01:58 -07:00
Modal Modal: disable view flattening explicitly for the children of Modal, the content wrappers 2020-04-23 15:39:45 -07:00
NativeAnimation Part 2: Update ObjC++ codegen classes to use ObjCTurboModule::InitParams 2020-04-16 17:29:55 -07:00
NativeModules/specs Add missing NativeEventListener methods to NativeDevSettings (#27838) 2020-01-23 13:20:53 -08:00
Network Part 2: Update ObjC++ codegen classes to use ObjCTurboModule::InitParams 2020-04-16 17:29:55 -07:00
NewAppScreen Add Dark Mode support to the App template and NewAppScreen components (#28711) 2020-04-24 14:35:53 -07:00
Performance Implement nativePerformanceNow to improve Profiler API results (#27885) 2020-03-31 10:23:51 -07:00
PermissionsAndroid Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
Pressability Make ColorValue public in StyleSheet.js 2020-04-17 13:03:47 -07:00
PushNotificationIOS Part 2: Update ObjC++ codegen classes to use ObjCTurboModule::InitParams 2020-04-16 17:29:55 -07:00
RCTRequired make RN infra labels public 2020-02-28 12:46:49 -08:00
ReactNative Flow 0.123.0 in xplat/js 2020-04-21 22:43:24 -07:00
ReactPrivate Do not explicitly include ".js" in Library imports (#28311) 2020-03-17 02:11:53 -07:00
Renderer Partial React Sync for Inspector 2020-03-30 14:05:26 -07:00
Settings Part 2: Update ObjC++ codegen classes to use ObjCTurboModule::InitParams 2020-04-16 17:29:55 -07:00
Share Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Storage Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
StyleSheet Make ColorValue public in StyleSheet.js 2020-04-17 13:03:47 -07:00
SurfaceBackedComponent Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
SurfaceHostingComponent Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
Text Calling Paper TextInput setTextAndSelection view command now dirties layout 2020-04-27 03:23:34 -07:00
TurboModule RN: Add `RootTag` Type to TurboModule 2020-04-21 19:15:54 -07:00
TypeSafety Guard against null values in object parameters for bridged methods 2020-03-23 17:21:00 -07:00
Types Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
Utilities BackHandler: specify function return type for handler (#28192) 2020-04-23 14:13:06 -07:00
Vibration Part 2: Update ObjC++ codegen classes to use ObjCTurboModule::InitParams 2020-04-16 17:29:55 -07:00
WebSocket Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
Wrapper Back out "Rename measure to measureContent and pass it LayoutContext" 2020-03-04 05:01:53 -08:00
YellowBox Delete YellowBox 2020-02-21 10:34:40 -08:00
__flowtests__ Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
polyfills Upgrade Prettier in Xplat to version 1.19.1 2020-04-09 11:01:58 -07:00
vendor Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
Promise.js Back out "Upgrade Prettier from 1.17 to 2.0.2." 2020-03-24 21:47:35 -07:00
UTFSequence.js Clean-up $TEMPORARY$object in xplat/js/react-native-github 2019-08-21 09:58:24 -07:00
promiseRejectionIsError.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00