/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v0.80.2
packages/react-native/Libraries/Promise.js
23 строки
505 B
Dawid Małecki
Change Promise import syntax (#48725)
16 янв 2025, 17:13
16 янв 2025, 17:13
c720000
Код
Авторство
О чём код?
/** * 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. * * @format * @flow strict */ 'use strict'; import Promise from 'promise/setimmediate/es6-extensions'; require('promise/setimmediate/finally'); if (__DEV__) { require('promise/setimmediate/rejection-tracking').enable( require('./promiseRejectionTrackingOptions').default, ); } export default Promise;