123456789101112131415161718192021222324252627282930313233343536 |
- //
- // RCCDrawerHelper.h
- // ReactNativeControllers
- //
- // Created by Ran Greenberg on 07/04/2016.
- // Copyright © 2016 artal. All rights reserved.
- //
-
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
-
- #define DRAWER_DEFAULT_WIDTH_PERCENTAGE 80
-
- typedef NS_ENUM(NSInteger,RCCDrawerSide){
- RCCDrawerSideLeft,
- RCCDrawerSideRight
- };
-
-
- @interface RCCDrawerHelper : NSObject
-
- +(UIButton*)createOverlayButton:(id)target;
-
- +(void)addOverlayButtonToScreen:(UIButton*)buttonToAdd
- contextView:(UIView*)view
- side:(RCCDrawerSide)side
- sideMenuWidth:(CGFloat)sideMenuWidth
- animationDuration:(CGFloat)duration;
-
- +(void)overlayButtonPressed:(UIButton*)button animationDuration:(CGFloat)duration;
- +(UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize;
-
-
-
- @end
|