mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-27 19:25:11 +08:00
Convert alloc/init to new to please linter
This commit is contained in:
@@ -29,7 +29,7 @@ RCT_EXPORT_MODULE()
|
||||
|
||||
- (UIView *)view
|
||||
{
|
||||
return [[UIActivityIndicatorView alloc] init];
|
||||
return [UIActivityIndicatorView new];
|
||||
}
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(color, UIColor)
|
||||
|
||||
Reference in New Issue
Block a user