mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add "newProps" map into ReactShadowNode
Reviewed By: achen1 Differential Revision: D7205127 fbshipit-source-id: 6c27070806de36cab7adf9c392a10c815aee90d4
This commit is contained in:
committed by
Facebook Github Bot
parent
e31781be61
commit
c883d4e727
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user