We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e171d95 commit e33e083Copy full SHA for e33e083
ios/RNMBX/RNMBXMapViewComponentView.mm
@@ -120,6 +120,9 @@ - (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childCompo
120
}
121
122
- (void)dispatchCameraChangedEvent:(NSDictionary*)event {
123
+ if (self->_eventEmitter == nullptr) {
124
+ return;
125
+ }
126
const auto [type, json] = RNMBXStringifyEventData(event);
127
std::dynamic_pointer_cast<const facebook::react::RNMBXMapViewEventEmitter>(self->_eventEmitter)->onCameraChanged({type, json});
128
0 commit comments