mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
122cc8ba8a
Summary: Part of #24875 ## Changelog [General] [Added] - Add TurboModule spec for AlertManager Pull Request resolved: https://github.com/facebook/react-native/pull/24906 Reviewed By: lunaleaps Differential Revision: D15471065 Pulled By: fkgozali fbshipit-source-id: bb22e6454b1f748987f3a8cd957bfd4e027493a5
27 lines
580 B
JavaScript
27 lines
580 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow strict-local
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import NativeAlertManager from './NativeAlertManager';
|
|
import type {Args} from './NativeAlertManager';
|
|
|
|
module.exports = {
|
|
alertWithArgs(
|
|
args: Args,
|
|
callback: (id: number, value: string) => void,
|
|
): void {
|
|
if (NativeAlertManager == null) {
|
|
return;
|
|
}
|
|
NativeAlertManager.alertWithArgs(args, callback);
|
|
},
|
|
};
|