Skip to content

Commit

Permalink
Removed support of mysterious "deprecated" scale in RCTImageSource
Browse files Browse the repository at this point in the history
Reviewed By: fkgozali

Differential Revision: D5197885

fbshipit-source-id: 06b7ee0ed71e07f1db1db053fbbd5f9834d56586
  • Loading branch information
shergin authored and facebook-github-bot committed Jun 21, 2017
1 parent 01adc71 commit d0ad6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Base/RCTImageSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ + (RCTImageSource *)RCTImageSource:(id)json
return nil;
}
size = [self CGSize:json];
scale = [self CGFloat:json[@"scale"]] ?: [self BOOL:json[@"deprecated"]] ? 0.0 : 1.0;
scale = [self CGFloat:json[@"scale"]] ?: 1.0;
packagerAsset = [self BOOL:json[@"__packager_asset"]];
} else if ([json isKindOfClass:[NSString class]]) {
request = [self NSURLRequest:json];
Expand Down

0 comments on commit d0ad6ad

Please sign in to comment.