mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
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 !=
|
||||
|
||||
Reference in new issue
Block a user