Fix numberOfLines prop diffing for Paragraph component (#51277)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51277

The number of lines prop diffing was not being updated when enabling Props 2.0 and when set through the paragraph attributes. This diff fixes the typo that was causing the bug.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D74619497

fbshipit-source-id: 2ad7d1629106ff16d511760694dcef0cafd9a96e
This commit is contained in:
Nick Lefever authored and Facebook GitHub Bot committed 2025-05-13 05:27:17 -07:00
1 parent cde792ae5e
commit 76ed662f1e
1 file changed
+1 -1
@@ -167,7 +167,7 @@ folly::dynamic ParagraphProps::getDiffProps(const Props* prevProps) const {
if (paragraphAttributes.maximumNumberOfLines !=
oldProps->paragraphAttributes.maximumNumberOfLines) {
result["numberOfLine"] = paragraphAttributes.maximumNumberOfLines;
result["numberOfLines"] = paragraphAttributes.maximumNumberOfLines;
}
if (paragraphAttributes.ellipsizeMode !=