react-native-macos/Libraries/Text/TextInput
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
..
Multiline Add blur and focus native commands to TextInput 2020-01-20 03:08:23 -08:00
Singleline Fabric: <TextInput> component on iOS: RCTTextInputUtils 2020-01-13 23:22:10 -08:00
RCTBackedTextInputDelegate.h New delegate method in RCTBackedTextInputDelegate and its implementation 2019-12-01 19:09:49 -08:00
RCTBackedTextInputDelegateAdapter.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBackedTextInputDelegateAdapter.m New delegate method in RCTBackedTextInputDelegate and its implementation 2019-12-01 19:09:49 -08:00
RCTBackedTextInputViewProtocol.h TextInput: Refactoring of RCTBackedTextInputViewProtocol (merging some props into defaultTextAttributes) 2019-12-13 09:03:04 -08:00
RCTBaseTextInputShadowView.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBaseTextInputShadowView.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBaseTextInputView.h Calling Paper TextInput setTextAndSelection view command now dirties layout 2020-04-27 03:23:34 -07:00
RCTBaseTextInputView.m Calling Paper TextInput setTextAndSelection view command now dirties layout 2020-04-27 03:23:34 -07:00
RCTBaseTextInputViewManager.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTBaseTextInputViewManager.m Calling Paper TextInput setTextAndSelection view command now dirties layout 2020-04-27 03:23:34 -07:00
RCTInputAccessoryShadowView.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTInputAccessoryShadowView.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTInputAccessoryView.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTInputAccessoryView.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTInputAccessoryViewContent.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTInputAccessoryViewContent.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTInputAccessoryViewManager.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTInputAccessoryViewManager.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTextSelection.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTextSelection.m Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00