Add setChildren to FlatUIImplementation
Summary: Add support in FlatUIImplementation for the setChildren call added in D3235369 Reviewed By: astreet Differential Revision: D3240883
This commit is contained in:
parent
0d21baf604
commit
fede138786
|
@ -165,6 +165,19 @@ public class FlatUIImplementation extends UIImplementation {
|
|||
addChildren(parentNode, addChildTags, addAtIndices);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setChildren(
|
||||
int viewTag,
|
||||
ReadableArray children) {
|
||||
|
||||
ReactShadowNode parentNode = resolveShadowNode(viewTag);
|
||||
|
||||
for (int i = 0; i < children.size(); i++) {
|
||||
ReactShadowNode addToChild = resolveShadowNode(children.getInt(i));
|
||||
addChildAt(parentNode, addToChild, i, i - 1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void measure(int reactTag, Callback callback) {
|
||||
FlatShadowNode node = (FlatShadowNode) resolveShadowNode(reactTag);
|
||||
|
|
Loading…
Reference in New Issue