mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ReactEventEmitter null fix (#44394)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44394 Lint fix - flip to a guaranteed non-null value instead of the nullable field Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D56898951 fbshipit-source-id: 8740ed77d71a827c7ce80b2df941d24985339619
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3f59d53281
commit
c7dcdc1c09
+5
-2
@@ -142,8 +142,11 @@ class ReactEventEmitter implements RCTModernEventEmitter {
|
||||
customCoalesceKey,
|
||||
event,
|
||||
category);
|
||||
} else if (uiManagerType == UIManagerType.DEFAULT && getDefaultEventEmitter() != null) {
|
||||
mDefaultEventEmitter.receiveEvent(targetReactTag, eventName, event);
|
||||
} else if (uiManagerType == UIManagerType.DEFAULT) {
|
||||
RCTEventEmitter defaultEmitter = getDefaultEventEmitter();
|
||||
if (defaultEmitter != null) {
|
||||
defaultEmitter.receiveEvent(targetReactTag, eventName, event);
|
||||
}
|
||||
} else {
|
||||
ReactSoftExceptionLogger.logSoftException(
|
||||
TAG,
|
||||
|
||||
Reference in New Issue
Block a user