react-native-linear-gradient/BVLinearGradientManager.m

27 lines
498 B
Mathematica
Raw Permalink Normal View History

2015-03-31 10:44:16 -07:00
#import "BVLinearGradientManager.h"
#import "BVLinearGradient.h"
#import "RCTBridge.h"
@implementation BVLinearGradientManager
RCT_EXPORT_MODULE();
2015-03-31 10:44:16 -07:00
@synthesize bridge = _bridge;
- (UIView *)view
{
return [[BVLinearGradient alloc] init];
}
2015-07-13 11:16:51 -04:00
- (dispatch_queue_t)methodQueue
{
return dispatch_get_main_queue();
}
2015-03-31 10:44:16 -07:00
RCT_EXPORT_VIEW_PROPERTY(colors, NSArray);
RCT_EXPORT_VIEW_PROPERTY(start, CGPoint);
RCT_EXPORT_VIEW_PROPERTY(end, CGPoint);
RCT_EXPORT_VIEW_PROPERTY(locations, NSArray);
2015-03-31 10:44:16 -07:00
@end