Don't mount nodes to Views on click

Summary:
Initially, we used to mount nodes to Views anytime a node was
clicked. This was not useful, since we could still not handle touch when
a touch event was already dispatched. Later, a fix was pushed that
supported handling touch events for non-View NodeRegions. Part of the
intention was to remove this code, but it was forgotten.

Reviewed By: sriramramani

Differential Revision: D3160532
This commit is contained in:
Ahmed El-Helw 2016-04-11 11:48:39 -07:00
parent c1474cc671
commit 5d6e73d0eb
1 changed files with 1 additions and 5 deletions

View File

@ -453,13 +453,9 @@ public class FlatUIImplementation extends UIImplementation {
node = node.getParent();
}
FlatShadowNode nonVirtualNode = (FlatShadowNode) node;
nonVirtualNode.forceMountToView();
mStateBuilder.ensureBackingViewIsCreated(nonVirtualNode);
FlatUIViewOperationQueue operationsQueue = mStateBuilder.getOperationsQueue();
operationsQueue.enqueueSetJSResponder(
nonVirtualNode.getReactTag(),
node.getReactTag(),
possiblyVirtualReactTag,
blockNativeResponder);
}