Skip to content

Commit 76ed662

Browse files
Nick Lefeverfacebook-github-bot
authored andcommitted
Fix numberOfLines prop diffing for Paragraph component (facebook#51277)
Summary: Pull Request resolved: facebook#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
1 parent cde792a commit 76ed662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/ReactCommon/react/renderer/components/text/ParagraphProps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ folly::dynamic ParagraphProps::getDiffProps(const Props* prevProps) const {
167167

168168
if (paragraphAttributes.maximumNumberOfLines !=
169169
oldProps->paragraphAttributes.maximumNumberOfLines) {
170-
result["numberOfLine"] = paragraphAttributes.maximumNumberOfLines;
170+
result["numberOfLines"] = paragraphAttributes.maximumNumberOfLines;
171171
}
172172

173173
if (paragraphAttributes.ellipsizeMode !=

0 commit comments

Comments
 (0)