RCTResizeMode.h 663 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <React/RCTConvert.h>
  8. typedef NS_ENUM(NSInteger, RCTResizeMode) {
  9. RCTResizeModeCover = UIViewContentModeScaleAspectFill,
  10. RCTResizeModeContain = UIViewContentModeScaleAspectFit,
  11. RCTResizeModeStretch = UIViewContentModeScaleToFill,
  12. RCTResizeModeCenter = UIViewContentModeCenter,
  13. RCTResizeModeRepeat = -1, // Use negative values to avoid conflicts with iOS enum values.
  14. };
  15. @interface RCTConvert(RCTResizeMode)
  16. + (RCTResizeMode)RCTResizeMode:(id)json;
  17. @end