mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-25 12:55:41 +08:00
Convert alloc/init to new to please linter
This commit is contained in:
@@ -25,12 +25,12 @@ RCT_EXPORT_MODULE()
|
||||
|
||||
- (UIView *)view
|
||||
{
|
||||
return [[RCTText alloc] init];
|
||||
return [RCTText new];
|
||||
}
|
||||
|
||||
- (RCTShadowView *)shadowView
|
||||
{
|
||||
return [[RCTShadowText alloc] init];
|
||||
return [RCTShadowText new];
|
||||
}
|
||||
|
||||
#pragma mark - Shadow properties
|
||||
|
||||
Reference in New Issue
Block a user