react-native-navigation的迁移库

RCCDrawerHelper.h 858B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // RCCDrawerHelper.h
  3. // ReactNativeControllers
  4. //
  5. // Created by Ran Greenberg on 07/04/2016.
  6. // Copyright © 2016 artal. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #define DRAWER_DEFAULT_WIDTH_PERCENTAGE 80
  11. typedef NS_ENUM(NSInteger,RCCDrawerSide){
  12. RCCDrawerSideLeft,
  13. RCCDrawerSideRight
  14. };
  15. @interface RCCDrawerHelper : NSObject
  16. +(UIButton*)createOverlayButton:(id)target;
  17. +(void)addOverlayButtonToScreen:(UIButton*)buttonToAdd
  18. contextView:(UIView*)view
  19. side:(RCCDrawerSide)side
  20. sideMenuWidth:(CGFloat)sideMenuWidth
  21. animationDuration:(CGFloat)duration;
  22. +(void)overlayButtonPressed:(UIButton*)button animationDuration:(CGFloat)duration;
  23. +(UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize;
  24. @end