File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
packages/react-native-renderer/src
__mocks__/react-native/Libraries/ReactPrivate Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ const ReactNativeBridgeEventPlugin = {
199199 const bubbleDispatchConfig = customBubblingEventTypes [ topLevelType ] ;
200200 const directDispatchConfig = customDirectEventTypes [ topLevelType ] ;
201201 let customEventConfig = null ;
202+ console . log ( 'what is CustomEvent?' , CustomEvent ) ;
202203 if ( nativeEvent instanceof CustomEvent ) {
203204 // $FlowFixMe
204205 if ( topLevelType . indexOf ( 'on' ) !== 0 ) {
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (c) Facebook, Inc. and its affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ */
7+
8+ 'use strict' ;
9+
10+ // See the react-native repository for a full implementation.
11+ // This is just a stub, currently to pass `instanceof` checks.
12+ const CustomEvent = jest . fn ( ) ;
13+
14+ module . exports = { default : CustomEvent } ;
You can’t perform that action at this time.
0 commit comments