/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/Libraries/Core/setUpAlert.js
23 строки
611 B
Iwo Plaza
Migrated Alert/*.js and ActionSheetIOS/*.js to use `export` syntax. (#48703)
15 янв 2025, 19:23
15 янв 2025, 19:23
c89c5d7
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ 'use strict'; /** * Set up alert(). * You can use this module directly, or just require InitializeCore. */ if (!global.alert) { global.alert = function (text: string) { // Require Alert on demand. Requiring it too early can lead to issues // with things like Platform not being fully initialized. require('../Alert/Alert').default.alert('Alert', '' + text); }; }