mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 13:25:51 +08:00
Convert alloc/init to new to please linter
This commit is contained in:
@@ -30,7 +30,7 @@ RCT_EXPORT_VIEW_PROPERTY(enabled, BOOL)
|
||||
|
||||
- (NSDictionary *)constantsToExport
|
||||
{
|
||||
RCTSegmentedControl *view = [[RCTSegmentedControl alloc] init];
|
||||
RCTSegmentedControl *view = [RCTSegmentedControl new];
|
||||
return @{
|
||||
@"ComponentHeight": @(view.intrinsicContentSize.height),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user