Skip to content

Commit

Permalink
fix: init props
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Jun 28, 2022
1 parent bdeaa0f commit 65ba965
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ios/RNSFullWindowOverlay.mm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifdef RN_FABRIC_ENABLED
#import <React/RCTSurfaceTouchHandler.h>
#import <react/renderer/components/rnscreens/ComponentDescriptors.h>
#import <react/renderer/components/rnscreens/Props.h>
#import <react/renderer/components/rnscreens/RCTComponentViewHelpers.h>
#import "RCTFabricComponentsPlugins.h"
#else
Expand Down Expand Up @@ -36,13 +37,17 @@ @implementation RNSFullWindowOverlay {
#endif // RN_FABRIC_ENABLED
}

#ifdef RN_FABRIC_ENABLED
- (instancetype)init
{
if (self = [super init]) {
static const auto defaultProps = std::make_shared<const facebook::react::RNSFullWindowOverlayProps>();
_props = defaultProps;
[self _initCommon];
}
return self;
}
#endif // RN_FABRIC_ENABLED

- (instancetype)initWithBridge:(RCTBridge *)bridge
{
Expand Down

0 comments on commit 65ba965

Please sign in to comment.