mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-07 13:05:18 +08:00
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
27 lines
582 B
JavaScript
27 lines
582 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow strict-local
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import type {
|
|
TimePickerOptions,
|
|
TimePickerResult,
|
|
} from './TimePickerAndroidTypes';
|
|
|
|
const TimePickerAndroid = {
|
|
async open(options: TimePickerOptions): Promise<TimePickerResult> {
|
|
return Promise.reject({
|
|
message: 'TimePickerAndroid is not supported on this platform.',
|
|
});
|
|
},
|
|
};
|
|
|
|
module.exports = TimePickerAndroid;
|