diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/NativeViewWrapper.java b/ReactAndroid/src/main/java/com/facebook/react/flat/NativeViewWrapper.java index 05b4b8154..3cd0421b0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/NativeViewWrapper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/NativeViewWrapper.java @@ -16,6 +16,7 @@ import com.facebook.csslayout.CSSNodeAPI; import com.facebook.react.uimanager.ReactStylesDiffMap; import com.facebook.react.uimanager.ReactShadowNode; import com.facebook.react.uimanager.ThemedReactContext; +import com.facebook.react.uimanager.UIViewOperationQueue; import com.facebook.react.uimanager.ViewGroupManager; import com.facebook.react.uimanager.ViewManager; @@ -67,6 +68,14 @@ import com.facebook.react.uimanager.ViewManager; // suppress, this is handled by a ViewManager } + @Override + public void setReactTag(int reactTag) { + super.setReactTag(reactTag); + if (mReactShadowNode != null) { + mReactShadowNode.setReactTag(reactTag); + } + } + @Override public void setThemedContext(ThemedReactContext themedContext) { super.setThemedContext(themedContext); @@ -98,4 +107,12 @@ import com.facebook.react.uimanager.ViewManager; dirty(); } } + + @Override + public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) { + if (mReactShadowNode != null && mReactShadowNode.hasUnseenUpdates()) { + mReactShadowNode.onCollectExtraUpdates(uiViewOperationQueue); + markUpdateSeen(); + } + } }