From 2bb65717b7b86d19e4d35707003df7d5be31c2fb Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Thu, 27 Feb 2025 00:58:35 -0800 Subject: [PATCH] Fix `onContentSizeChange` being dispatched too often on iOS (#49695) Summary: Solves the iOS part of https://github.com/facebook/react-native/issues/47186. `onContentSizeChanged` event is sent inside the `updateLayoutMetrics` method every time it's invoked. A change in layout metrics doesn't mean that the content size also changes, like changing the position of the input. This PR adds a condition that the content size must have changed before sending the event. |Before this change|After this change| |-|-| |