Browse Source

Fix title.component fill parent

yogevbd 5 years ago
parent
commit
7e6b2be676
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/ios/RNNReactTitleView.m

+ 1
- 1
lib/ios/RNNReactTitleView.m View File

19
 - (void)setAlignment:(NSString *)alignment inFrame:(CGRect)frame {
19
 - (void)setAlignment:(NSString *)alignment inFrame:(CGRect)frame {
20
     if ([alignment isEqualToString:@"fill"]) {
20
     if ([alignment isEqualToString:@"fill"]) {
21
         _fillParent = YES;
21
         _fillParent = YES;
22
-        self.frame = frame;
22
+        self.translatesAutoresizingMaskIntoConstraints = NO;
23
         self.sizeFlexibility = RCTRootViewSizeFlexibilityNone;
23
         self.sizeFlexibility = RCTRootViewSizeFlexibilityNone;
24
     } else {
24
     } else {
25
         self.sizeFlexibility = RCTRootViewSizeFlexibilityWidthAndHeight;
25
         self.sizeFlexibility = RCTRootViewSizeFlexibilityWidthAndHeight;