File tree Expand file tree Collapse file tree 5 files changed +18
-10
lines changed
packages/react-native-renderer/src Expand file tree Collapse file tree 5 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 63
63
"eslint-plugin-react-internal" : " link:./scripts/eslint-rules" ,
64
64
"fbjs-scripts" : " 1.2.0" ,
65
65
"filesize" : " ^6.0.1" ,
66
- "flow-bin" : " ^0.143 .0" ,
66
+ "flow-bin" : " ^0.145 .0" ,
67
67
"glob" : " ^7.1.6" ,
68
68
"glob-stream" : " ^6.1.0" ,
69
69
"google-closure-compiler" : " ^20200517.0.0" ,
Original file line number Diff line number Diff line change @@ -122,9 +122,6 @@ export default function getListeners(
122
122
detail : syntheticEvent . nativeEvent ,
123
123
} ) ;
124
124
eventInst . isTrusted = true ;
125
- // setSyntheticEvent is present on the React Native Event shim.
126
- // It is used to forward method calls on Event to the underlying SyntheticEvent.
127
- // $FlowFixMe
128
125
eventInst . setSyntheticEvent ( syntheticEvent ) ;
129
126
130
127
listenerObj . listener ( eventInst , ...args ) ;
Original file line number Diff line number Diff line change @@ -50,4 +50,4 @@ munge_underscores=false
50
50
%REACT_RENDERER_FLOW_OPTIONS%
51
51
52
52
[version]
53
- ^0.143 .0
53
+ ^0.145 .0
Original file line number Diff line number Diff line change @@ -143,7 +143,18 @@ declare module 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface'
143
143
emit : ( channel : string , event : RawEventEmitterEvent ) => string ,
144
144
...
145
145
} ;
146
- declare export var CustomEvent : CustomEvent ;
146
+ declare export class CustomEvent {
147
+ isTrusted : boolean ;
148
+
149
+ constructor (
150
+ name : string ,
151
+ {
152
+ detail : any ,
153
+ } ,
154
+ ) : void ;
155
+
156
+ setSyntheticEvent ( event : any ) : void ;
157
+ }
147
158
}
148
159
149
160
declare module 'react - native / Libraries / ReactPrivate / ReactNativePrivateInitializeCore ' {
Original file line number Diff line number Diff line change @@ -7911,10 +7911,10 @@ flatted@^2.0.0:
7911
7911
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
7912
7912
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
7913
7913
7914
- flow-bin@^0.143 .0:
7915
- version "0.143.1 "
7916
- resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.143.1 .tgz#2ff825dfd85e84531b0ae780842cb1c2a9743cd2 "
7917
- integrity sha512-6S6bgZ/pghBzEUELXkwFH/bsHT+GBMo8ftHDYs0SSJ+1e6NRdFfqxcYhaTvAK8zteSfQLZBIoec6G4WPPp4qQg ==
7914
+ flow-bin@^0.145 .0:
7915
+ version "0.145.0 "
7916
+ resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.145.0 .tgz#922f7c3568caaa5eb64621ec536deb56b24d1795 "
7917
+ integrity sha512-+9fi9BMxRBtSWC1x0hWggWTb8Vih+AC7wyvLAX5wR1m6u2lF2HLtixXqy2GX8bWgaynSEJR5lmPxYYC4wMI8cA ==
7918
7918
7919
7919
fluent-syntax@0.13.0:
7920
7920
version "0.13.0"
You can’t perform that action at this time.
0 commit comments