diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java b/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java index 1a9f1b605..c6c0f64d4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/StateBuilder.java @@ -150,6 +150,11 @@ import com.facebook.react.uimanager.events.EventDispatcher; float top, float right, float bottom) { + if (left == right || top == bottom) { + // no point in adding an empty NodeRegion + return; + } + node.updateNodeRegion(left, top, right, bottom); mNodeRegions.add(node.getNodeRegion()); }