react-native-navigation的迁移库

RCTConvert+Modal.h 1.1KB

1234567891011121314151617181920212223242526272829
  1. #import <React/RCTConvert.h>
  2. @interface RCTConvert (Modal)
  3. @end
  4. @implementation RCTConvert (Modal)
  5. RCT_ENUM_CONVERTER(UIModalTransitionStyle,
  6. (@{@"coverVertical": @(UIModalTransitionStyleCoverVertical),
  7. @"flipHorizontal": @(UIModalTransitionStyleFlipHorizontal),
  8. @"crossDissolve": @(UIModalTransitionStyleCrossDissolve),
  9. @"partialCurl": @(UIModalTransitionStylePartialCurl)
  10. }), UIModalTransitionStyleCoverVertical, integerValue)
  11. RCT_ENUM_CONVERTER(UIModalPresentationStyle,
  12. (@{@"fullScreen": @(UIModalPresentationFullScreen),
  13. @"pageSheet": @(UIModalPresentationPageSheet),
  14. @"formSheet": @(UIModalPresentationFormSheet),
  15. @"currentContext": @(UIModalPresentationCurrentContext),
  16. @"custom": @(UIModalPresentationCustom),
  17. @"overFullScreen": @(UIModalPresentationOverFullScreen),
  18. @"overCurrentContext": @(UIModalPresentationOverCurrentContext),
  19. @"popover": @(UIModalPresentationPopover),
  20. @"none": @(UIModalPresentationNone)
  21. }), UIModalPresentationFullScreen, integerValue)
  22. @end