mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
revert D2707930
Reviewed By: fkgozali Differential Revision: D2720828 fb-gh-sync-id: 53113fb33150b42a7b597a7dfd04bb9885def029
This commit is contained in:
committed by
facebook-github-bot-0
parent
d1029d1b9d
commit
70f0dfc0e6
@@ -104,11 +104,11 @@ ReactNativeBaseComponent.Mixin = {
|
||||
// no children - let's avoid calling out to the native bridge for a large
|
||||
// portion of the children.
|
||||
if (mountImages.length) {
|
||||
|
||||
var indexes = cachedIndexArray(mountImages.length);
|
||||
// TODO: Pool these per platform view class. Reusing the `mountImages`
|
||||
// array would likely be a jit deopt.
|
||||
var createdTags = [];
|
||||
for (var i = 0, l = mountImages.length; i < l; i++) {
|
||||
for (var i = 0; i < mountImages.length; i++) {
|
||||
var mountImage = mountImages[i];
|
||||
var childTag = mountImage.tag;
|
||||
var childID = mountImage.rootNodeID;
|
||||
@@ -122,15 +122,8 @@ ReactNativeBaseComponent.Mixin = {
|
||||
);
|
||||
createdTags[i] = mountImage.tag;
|
||||
}
|
||||
|
||||
// Fast path for iOS
|
||||
if (UIManager.addChildren) {
|
||||
UIManager.addChildren(containerTag, createdTags);
|
||||
return;
|
||||
}
|
||||
|
||||
var indexes = cachedIndexArray(mountImages.length);
|
||||
UIManager.manageChildren(containerTag, null, null, createdTags, indexes, null);
|
||||
UIManager
|
||||
.manageChildren(containerTag, null, null, createdTags, indexes, null);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -53,7 +53,6 @@ var dangerouslyProcessChildrenUpdates = function(childrenUpdates, markupList) {
|
||||
(updates.addChildTags || (updates.addChildTags = [])).push(tag);
|
||||
}
|
||||
}
|
||||
|
||||
// Note this enumeration order will be different on V8! Move `byContainerTag`
|
||||
// to a sparse array as soon as we confirm there are not horrible perf
|
||||
// penalties.
|
||||
|
||||
@@ -188,16 +188,6 @@ var ReactNativeMount = {
|
||||
mountImage.rootNodeID,
|
||||
mountImage.tag
|
||||
);
|
||||
|
||||
// Fast path for iOS
|
||||
if (UIManager.addChildren) {
|
||||
UIManager.addChildren(
|
||||
ReactNativeTagHandles.mostRecentMountedNodeHandleForRootNodeID(containerID),
|
||||
[mountImage.tag]
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
var addChildTags = [mountImage.tag];
|
||||
var addAtIndices = [0];
|
||||
UIManager.manageChildren(
|
||||
|
||||
Reference in New Issue
Block a user