react-native/Libraries/Text
Spencer Ahrens 5e110d2776 [ReactNative] Fix Text Updating Crash
Summary:
@public

{D1953613} added an optimization that allowed for shadow nodes that are not
backed by views, but didn't actually work robustly in the remove case because
the indices can get out of sync.  That diff also started returning nil for raw
text nodes, which triggered this bug and broke "see more" functionality in the
`FBTextWithEntities` and `ExpandingText` components, leading to crashes in the
Groups app.

This diff fixes the issue by simply returning `UIView` placeholders again.
Slight perf/ memory cost but no more crashes and there should be no other
adverse affects.

We'll need to think up something more clever in order to properly support `nil`
views in the future, probably something that uses the shadow hierarchy to build
the View hierarchy, rather than mirroring identical commands to both - see
#1102.

Test Plan:
- TextUpdateTest fails without native changes, now passes with them.
- ExpandingText example no longer crashes.
- See More in Groups app no longer crashes.
2015-05-02 10:07:08 -08:00
..
RCTText.xcodeproj Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
RCTRawTextManager.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTRawTextManager.m [ReactNative] Fix Text Updating Crash 2015-05-02 10:07:08 -08:00
RCTShadowRawText.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTShadowRawText.m [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTShadowText.h [React Native] #WIP Modify RCTShadowText measure function to honor maxNumberOfLines property 2015-04-07 02:11:01 -08:00
RCTShadowText.m Fixes #813 2015-04-23 04:06:16 -08:00
RCTText.h [React Native] #WIP Modify RCTShadowText measure function to honor maxNumberOfLines property 2015-04-07 02:11:01 -08:00
RCTText.m Fix updating RCTText with new text of the same size 2015-04-23 16:12:35 -08:00
RCTTextManager.h Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
RCTTextManager.m Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
RCTTextView.h Added missing features from Multiline Text commit 2015-04-29 15:27:15 -08:00
RCTTextView.m Added missing features from Multiline Text commit 2015-04-29 15:27:15 -08:00
RCTTextViewManager.h Add support for multiline TextInput via UITextView 2015-04-29 01:33:58 -08:00
RCTTextViewManager.m Added missing features from Multiline Text commit 2015-04-29 15:27:15 -08:00
Text.js [react-native] Fix capitalization of "REact" 2015-04-27 13:52:57 -08:00
TextStylePropTypes.js [react_native] JS files from D1941151: Allow fontWeight to be 100,200,...,900 2015-03-25 09:21:30 -08:00
TextUpdateTest.js [ReactNative] Fix Text Updating Crash 2015-05-02 10:07:08 -08:00