From 1814bffcc2139b9d7ff4660e5ec184639c08f6ec Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Tue, 15 Feb 2022 08:49:21 -0800 Subject: [PATCH] Minor changes to Flow types Summary: Changelog: [Internal] Reviewed By: arushikesarwani94 Differential Revision: D34171528 fbshipit-source-id: c3fdc4a8c77731f1f43f0e6d830d172906ed79a1 --- Libraries/Components/ScrollView/ScrollView.js | 2 +- Libraries/Components/TextInput/TextInput.js | 2 +- Libraries/Types/CoreEventTypes.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 7cee521c162..c3eccd2049e 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -675,7 +675,7 @@ type State = {| const IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16; -type ScrollViewComponentStatics = $ReadOnly<{| +export type ScrollViewComponentStatics = $ReadOnly<{| Context: typeof ScrollViewContext, |}>; diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 53f8c5b9772..4e781fb66bc 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -1350,7 +1350,7 @@ ExportedForwardRef.State = { blurTextInput: TextInputState.blurTextInput, }; -type TextInputComponentStatics = $ReadOnly<{| +export type TextInputComponentStatics = $ReadOnly<{| State: $ReadOnly<{| currentlyFocusedInput: typeof TextInputState.currentlyFocusedInput, currentlyFocusedField: typeof TextInputState.currentlyFocusedField, diff --git a/Libraries/Types/CoreEventTypes.js b/Libraries/Types/CoreEventTypes.js index de4e43dd4ff..02922b69c40 100644 --- a/Libraries/Types/CoreEventTypes.js +++ b/Libraries/Types/CoreEventTypes.js @@ -11,7 +11,7 @@ import * as React from 'react'; import type {HostComponent} from '../Renderer/shims/ReactNativeTypes'; -export type SyntheticEvent = $ReadOnly<{| +export type SyntheticEvent<+T> = $ReadOnly<{| bubbles: ?boolean, cancelable: ?boolean, currentTarget: number | React.ElementRef>,