mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 09:12:02 +00:00
21fcbbc32c
Summary: public Standardises the image decoding logic for all image sources, meaning we get the benefits of efficient downscaling of images from all sources, not just ALAssets. Reviewed By: javache Differential Revision: D2647083 fb-gh-sync-id: e41456f838e4c6ab709b1c1523f651a86ff6e623
21 lines
577 B
Objective-C
21 lines
577 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import "RCTResizeMode.h"
|
|
|
|
@implementation RCTConvert(RCTResizeMode)
|
|
|
|
RCT_ENUM_CONVERTER(RCTResizeMode, (@{
|
|
@"cover": @(RCTResizeModeCover),
|
|
@"contain": @(RCTResizeModeContain),
|
|
@"stretch": @(RCTResizeModeStretch),
|
|
}), RCTResizeModeStretch, integerValue)
|
|
|
|
@end
|