2016-01-26 21:29:47 +03:00
|
|
|
/**
|
2018-09-12 01:27:47 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2016-01-26 21:29:47 +03:00
|
|
|
*
|
2018-02-17 05:24:55 +03: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 21:29:47 +03:00
|
|
|
*
|
2018-05-11 05:06:46 +03:00
|
|
|
* @format
|
2018-12-26 23:00:56 +03:00
|
|
|
* @flow strict-local
|
2016-01-26 21:29:47 +03:00
|
|
|
*/
|
2018-05-11 05:06:46 +03:00
|
|
|
|
2016-01-26 21:29:47 +03:00
|
|
|
'use strict';
|
|
|
|
|
2019-05-08 18:44:25 +03:00
|
|
|
import type {Options, DatePickerOpenAction} from './DatePickerAndroidTypes';
|
2018-12-26 23:00:56 +03:00
|
|
|
|
2018-12-26 23:00:56 +03: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 21:29:47 +03:00
|
|
|
|
|
|
|
module.exports = DatePickerAndroid;
|