Dirty the shadow node when ReactLithoView requests layout
Reviewed By: shergin Differential Revision: D5756680 fbshipit-source-id: 409095a2ee61db7ee7a85e12ab64c7806da3b3d9
This commit is contained in:
parent
2757260624
commit
5a3828d299
|
@ -581,6 +581,18 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
|||
return mUIImplementation.resolveRootTagFromReactTag(reactTag);
|
||||
}
|
||||
|
||||
/** Dirties the node associated with the given react tag */
|
||||
public void invalidateNodeLayout(int tag) {
|
||||
ReactShadowNode node = mUIImplementation.resolveShadowNode(tag);
|
||||
if (node == null) {
|
||||
FLog.w(
|
||||
ReactConstants.TAG,
|
||||
"Warning : attempted to dirty a non-existent react shadow node. reactTag=" + tag);
|
||||
return;
|
||||
}
|
||||
node.dirty();
|
||||
}
|
||||
|
||||
/**
|
||||
* Listener that drops the CSSNode pool on low memory when the app is backgrounded.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue