Add "newProps" map into ReactShadowNode

Reviewed By: achen1

Differential Revision: D7205127

fbshipit-source-id: 6c27070806de36cab7adf9c392a10c815aee90d4
This commit is contained in:
David Vacca authored and Facebook Github Bot committed 2018-03-09 09:47:44 -08:00
1 parent e31781be61
commit c883d4e727
3 files changed
+39 -5

No files matched your search

@@ -72,8 +72,12 @@ public interface ReactShadowNode<T extends ReactShadowNode> {
*/
T mutableCopy();
T mutableCopyWithNewProps(@Nullable ReactStylesDiffMap newProps);
T mutableCopyWithNewChildren();
T mutableCopyWithNewChildrenAndProps(@Nullable ReactStylesDiffMap newProps);
String getViewClass();
boolean hasUpdates();
@@ -100,6 +104,8 @@ public interface ReactShadowNode<T extends ReactShadowNode> {
void removeAndDisposeAllChildren();
@Nullable ReactStylesDiffMap getNewProps();
/**
* This method will be called by {@link UIManagerModule} once per batch, before calculating
* layout. Will be only called for nodes that are marked as updated with {@link #markUpdated()} or