Skip to content

Commit d8ced6f

Browse files
jcdhlzqfacebook-github-bot
authored andcommitted
Fix ReactTextView setPadding applying logic error (#36999)
Summary: Fix the logic error when setPadding int ReactTextView. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #36999 Reviewed By: NickGerleman Differential Revision: D45773288 Pulled By: javache fbshipit-source-id: ed4681aeab58ed4c3d2e04edb2d096b50932c088
1 parent 1b5c1c7 commit d8ced6f

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text

1 file changed

+1
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public void setText(ReactTextUpdate update) {
378378
// operation
379379
// TODO T56559197: remove this condition when we migrate 100% to Fabric
380380
if (paddingLeft != UNSET
381-
&& paddingBottom != UNSET
381+
&& paddingTop != UNSET
382382
&& paddingRight != UNSET
383383
&& paddingBottom != UNSET) {
384384

0 commit comments

Comments
 (0)