FIX CGMakeRect is really CGRectMake
Summary: There's a typo, CGMakeRect is really CGRectMake https://developer.apple.com/reference/coregraphics/1455245-cgrectmake Closes https://github.com/facebook/react-native/pull/8524 Differential Revision: D3508996 Pulled By: bestander fbshipit-source-id: 67270ba52b97bbf4e2a5afd97cfb04647e5aad62
This commit is contained in:
parent
6a1324e8f6
commit
e5b389e44c
|
@ -144,7 +144,7 @@ For instance, to make an RN app 200 (logical) pixels high, and the hosting view'
|
|||
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
|
||||
moduleName:appName
|
||||
initialProperties:props];
|
||||
rootView.frame = CGMakeRect(0, 0, self.view.width, 200);
|
||||
rootView.frame = CGRectMake(0, 0, self.view.width, 200);
|
||||
[self.view addSubview:rootView];
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue