react-native-blur/ios/VibrancyViewManager.m
Eli Perkins 60c38e34ee Refactor VibrancyView to use modern Objective-C syntax and paradigms
This moves to modern Objective-C practices.

UIVisualEffectViews will now only be created once, rather than on each change of blurType.
2017-04-10 11:24:39 -04:00

18 lines
287 B
Objective-C

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "VibrancyViewManager.h"
#import "VibrancyView.h"
@implementation VibrancyViewManager
RCT_EXPORT_MODULE();
- (UIView *)view
{
return [[VibrancyView alloc] init];
}
RCT_EXPORT_VIEW_PROPERTY(blurType, NSString);
@end