瀏覽代碼

Prefer use of intrinsicContentSize (#1783)

This converts from using a deprecated attribute.
Eli Perkins 7 年之前
父節點
當前提交
4c4eb7bb91
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      ios/RCCCustomBarButtonItem.m

+ 1
- 1
ios/RCCCustomBarButtonItem.m 查看文件

@@ -22,7 +22,7 @@
22 22
 }
23 23
 
24 24
 - (void)rootViewDidChangeIntrinsicSize:(RCTRootView *)rootView {
25
-    CGSize size = rootView.intrinsicSize;
25
+    CGSize size = rootView.intrinsicContentSize;
26 26
     rootView.frame = CGRectMake(0, 0, size.width, size.height);
27 27
     self.width = size.width;
28 28
 }