diff --git a/packages/rn-tester/js/examples/Experimental/PlatformTest/RNTesterPlatformTestEventRecorder.js b/packages/rn-tester/js/examples/Experimental/PlatformTest/RNTesterPlatformTestEventRecorder.js index 01dd7d8f898450..d790c250acedc2 100644 --- a/packages/rn-tester/js/examples/Experimental/PlatformTest/RNTesterPlatformTestEventRecorder.js +++ b/packages/rn-tester/js/examples/Experimental/PlatformTest/RNTesterPlatformTestEventRecorder.js @@ -119,15 +119,14 @@ class RNTesterPlatformTestEventRecorder { callback && callback(event, eventType, targetName), ); const eventListenerProps = this.relevantEvents.reduce( - (acc, eventName) => { + (acc: ViewProps, eventName) => { const eventPropName = 'on' + eventName[0].toUpperCase() + eventName.slice(1); return { ...acc, - // $FlowFixMe[missing-local-annot] - [eventPropName]: e => { + [eventPropName]: (e => { recordedEventHandler(e, eventName); - }, + }) as $FlowFixMe, }; }, {},