Skip to content

Commit a994a3a

Browse files
committed
fix capture phase registration
1 parent b37c1af commit a994a3a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/react-native-renderer/src/ReactNativeBridgeEventPlugin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,10 @@ const ReactNativeBridgeEventPlugin = {
213213
bubbles: nativeEvent.bubbles,
214214
phasedRegistrationNames: {
215215
bubbled: topLevelType,
216-
// $FlowFixMe
217-
captured: topLevelType + 'Capture',
216+
// Unlike with the props-based handlers, capture events are registered
217+
// to the HostComponent event emitter with the same name but a flag indicating
218+
// that the handler is for the capture phase.
219+
captured: topLevelType,
218220
},
219221
};
220222
}

0 commit comments

Comments
 (0)