mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-02-27 23:40:27 +00:00
This moves to modern Objective-C practices. UIVisualEffectViews will now only be created once, rather than on each change of blurType.
18 lines
287 B
Objective-C
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
|