react-native-blur/ios/BlurViewManager.mm
Gianluca Spada 2fcc595bc3 feat: Add Fabric support (#493)
* build(deps): update react-native

* feat: codegen setup for BlurView component

* feat: add basic Fabric component for BlurView (iOS)

* feat(iOS): implement updateProps Fabric method

* feat(iOS): migrate VibrancyView

* feat(Android): add code for new and old architecture

* chore: update dependencies and example app

* fix(iOS): interface VibrancyViewComponentView

* refactor: separate codegen specs by platform

* refactor: rename Android component file to avoid a bug in Codegen

* refactor: delete/rename files

* refactor: conditionally include Fabric code in the original views

* refactor: remove unnecessary code in build.gradle
2022-11-03 17:50:33 +01:00

18 lines
332 B
Plaintext

#import "BlurViewManager.h"
#import "BlurView.h"
@implementation BlurViewManager
RCT_EXPORT_MODULE();
- (UIView *)view
{
return [[BlurView alloc] init];
}
RCT_EXPORT_VIEW_PROPERTY(blurType, NSString);
RCT_EXPORT_VIEW_PROPERTY(blurAmount, NSNumber);
RCT_EXPORT_VIEW_PROPERTY(reducedTransparencyFallbackColor, UIColor);
@end