From 2ed1bb2e01ab7360d9bf13e4f9e13cb9c9c9d32e Mon Sep 17 00:00:00 2001 From: yushimatenjin Date: Fri, 25 Jan 2019 06:00:59 -0800 Subject: [PATCH] Flow strict-local in TimePickerAndroid.android.ios.js (#22714) Summary: Related to #22100 Enhance TimePickerAndroid flow types. Turn Flow strict mode on for Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.ios.js. All flow tests succeed. [General] [Changed] - Enhance Flow types definitions Pull Request resolved: https://github.com/facebook/react-native/pull/22714 Differential Revision: D13817142 Pulled By: cpojer fbshipit-source-id: 9d0f0b0629966a60d77b73ba8a6bba4e1a4e2337 --- .../TimePickerAndroid/TimePickerAndroid.ios.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js b/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js index 59ec50eb27260c..3de6ca4aa06560 100644 --- a/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js +++ b/Libraries/Components/TimePickerAndroid/TimePickerAndroid.ios.js @@ -5,13 +5,18 @@ * LICENSE file in the root directory of this source tree. * * @format - * @flow + * @flow strict-local */ 'use strict'; +import type { + TimePickerOptions, + TimePickerResult, +} from './TimePickerAndroidTypes'; + const TimePickerAndroid = { - async open(options: Object): Promise { + async open(options: TimePickerOptions): Promise { return Promise.reject({ message: 'TimePickerAndroid is not supported on this platform.', });