Browse Source

[IOS] - set titleLabel sizeToFit (#2443)

Michael Kuczera 7 years ago
parent
commit
f6d2c334c3
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      ios/Helpers/RCCTitleViewHelper.m

+ 2
- 1
ios/Helpers/RCCTitleViewHelper.m View File

221
         UIColor *color = navBarTextColor != (id)[NSNull null] ? [RCTConvert UIColor:navBarTextColor] : nil;
221
         UIColor *color = navBarTextColor != (id)[NSNull null] ? [RCTConvert UIColor:navBarTextColor] : nil;
222
         titleLabel.textColor = color;
222
         titleLabel.textColor = color;
223
     }
223
     }
224
-    
224
+
225
+    [titleLabel sizeToFit];
225
     [self.titleView addSubview:titleLabel];
226
     [self.titleView addSubview:titleLabel];
226
     
227
     
227
     return titleLabel;
228
     return titleLabel;