A framework for building native apps with React. http://facebook.github.io/react-native/
Go to file
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
Examples Upgraded dev menu 2015-05-01 06:36:49 -08:00
IntegrationTests MapView to support MKPointAnnotation using new attribute annotate in Map... 2015-04-14 18:03:37 -08:00
Libraries [ReactNative] Fix Text Updating Crash 2015-05-02 10:07:08 -08:00
React Upgraded dev menu 2015-05-01 06:36:49 -08:00
jestSupport [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
lint [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
packager [react-packager] Combine source maps coming from transformer 2015-05-01 16:59:14 -08:00
.eslintignore [react-packager][streamline oss] Move open sourced JS source to react-native-github 2015-02-19 21:25:11 -08:00
.eslintrc [ReactNative] Turn of lint warning for constant conditions 2015-04-03 10:04:35 -08:00
.flowconfig [Flow] Add versions to fbobjc .flowconfigs 2015-04-24 22:49:51 -08:00
React.podspec [ReactNative] rename Animation to AnimationExperimental with warning docs 2015-04-04 11:20:45 -08:00
linter.js [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
package.json [podspec] Include podspec in npm distribution 2015-04-29 08:14:24 -08:00
runXcodeTests.sh [React Native] Sync from github 2015-03-27 22:09:11 -08:00