瀏覽代碼

Fix title.component fill parent

yogevbd 5 年之前
父節點
當前提交
7e6b2be676
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lib/ios/RNNReactTitleView.m

+ 1
- 1
lib/ios/RNNReactTitleView.m 查看文件

@@ -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;