Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ios/RNMBX/RNMBXVectorSourceComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ - (instancetype)initWithFrame:(CGRect)frame
- (void)prepareView
{
_view = [[RNMBXVectorSource alloc] init];

// capture weak self reference to prevent retain cycle
__weak __typeof__(self) weakSelf = self;

Expand Down Expand Up @@ -124,13 +124,13 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
}
id hasPressListener = RNMBXConvertFollyDynamicToId(newProps.hasPressListener);
if (hasPressListener != nil) {
_view.hasPressListener = hasPressListener;
_view.hasPressListener = [hasPressListener boolValue];
}
id hitbox = RNMBXConvertFollyDynamicToId(newProps.hitbox);
if (hitbox != nil) {
_view.hitbox = hitbox;
}

[super updateProps:props oldProps:oldProps];
}

Expand Down
Loading