ToastAndroid.ios.js 885 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. * @noflow
  9. */
  10. 'use strict';
  11. const warning = require('fbjs/lib/warning');
  12. const ToastAndroid = {
  13. show: function(message: string, duration: number): void {
  14. warning(false, 'ToastAndroid is not supported on this platform.');
  15. },
  16. showWithGravity: function(
  17. message: string,
  18. duration: number,
  19. gravity: number,
  20. ): void {
  21. warning(false, 'ToastAndroid is not supported on this platform.');
  22. },
  23. showWithGravityAndOffset: function(
  24. message: string,
  25. duration: number,
  26. gravity: number,
  27. xOffset: number,
  28. yOffset: number,
  29. ): void {
  30. warning(false, 'ToastAndroid is not supported on this platform.');
  31. },
  32. };
  33. module.exports = ToastAndroid;