mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
Convert alloc/init to new to please linter
This commit is contained in:
@@ -27,7 +27,7 @@ RCT_EXPORT_VIEW_PROPERTY(selectedIndex, NSInteger)
|
||||
|
||||
- (NSDictionary *)constantsToExport
|
||||
{
|
||||
UIPickerView *view = [[UIPickerView alloc] init];
|
||||
UIPickerView *view = [UIPickerView new];
|
||||
return @{
|
||||
@"ComponentHeight": @(view.intrinsicContentSize.height),
|
||||
@"ComponentWidth": @(view.intrinsicContentSize.width)
|
||||
|
||||
Reference in New Issue
Block a user