DatePickerAndroid.ios.js 755 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow strict-local
  9. */
  10. 'use strict';
  11. import type {Options, DatePickerOpenAction} from './DatePickerAndroidTypes';
  12. class DatePickerAndroid {
  13. static async open(options: ?Options): Promise<DatePickerOpenAction> {
  14. throw new Error('DatePickerAndroid is not supported on this platform.');
  15. }
  16. /**
  17. * A date has been selected.
  18. */
  19. static +dateSetAction: 'dateSetAction' = 'dateSetAction';
  20. /**
  21. * The dialog has been dismissed.
  22. */
  23. static +dismissedAction: 'dismissedAction' = 'dismissedAction';
  24. }
  25. module.exports = DatePickerAndroid;