Browse Source

Prefer use of intrinsicContentSize (#1783)

This converts from using a deprecated attribute.
Eli Perkins 7 years ago
parent
commit
4c4eb7bb91
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ios/RCCCustomBarButtonItem.m

+ 1
- 1
ios/RCCCustomBarButtonItem.m View File

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