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