2016-01-26 10:29:47 -08:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2016-01-26 10:29:47 -08:00
|
|
|
*
|
2018-02-16 18:24:55 -08:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2016-01-26 10:29:47 -08:00
|
|
|
*
|
2018-05-10 19:06:46 -07:00
|
|
|
* @format
|
2018-12-26 12:00:56 -08:00
|
|
|
* @flow strict-local
|
2016-01-26 10:29:47 -08:00
|
|
|
*/
|
2018-05-10 19:06:46 -07:00
|
|
|
|
2016-01-26 10:29:47 -08:00
|
|
|
'use strict';
|
|
|
|
|
2018-12-26 12:00:56 -08:00
|
|
|
import type {Options, DatePickerOpenAction} from 'DatePickerAndroidTypes';
|
2018-12-26 12:00:56 -08:00
|
|
|
|
2018-12-26 12:00:56 -08:00
|
|
|
class DatePickerAndroid {
|
|
|
|
static async open(options: ?Options): Promise<DatePickerOpenAction> {
|
|
|
|
throw new Error('DatePickerAndroid is not supported on this platform.');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A date has been selected.
|
|
|
|
*/
|
|
|
|
static +dateSetAction: 'dateSetAction' = 'dateSetAction';
|
|
|
|
/**
|
|
|
|
* The dialog has been dismissed.
|
|
|
|
*/
|
|
|
|
static +dismissedAction: 'dismissedAction' = 'dismissedAction';
|
|
|
|
}
|
2016-01-26 10:29:47 -08:00
|
|
|
|
|
|
|
module.exports = DatePickerAndroid;
|