RCTAlertManager.ios.js 580 B

1234567891011121314151617181920212223242526
  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 NativeAlertManager from './NativeAlertManager';
  12. import type {Args} from './NativeAlertManager';
  13. module.exports = {
  14. alertWithArgs(
  15. args: Args,
  16. callback: (id: number, value: string) => void,
  17. ): void {
  18. if (NativeAlertManager == null) {
  19. return;
  20. }
  21. NativeAlertManager.alertWithArgs(args, callback);
  22. },
  23. };