/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/Libraries/Network/fetch.js
20 строк
505 B
Iwo Plaza
Migrate files in Libraries/Modal and Libraries/Network to use export syntax (#49035)
11 фев 2025, 18:47
11 фев 2025, 18:47
28945c6
Код
Авторство
О чём код?
/** * 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 * @format */ 'use strict'; // side-effectful require() to put fetch, // Headers, Request, Response in global scope require('whatwg-fetch'); export const fetch = global.fetch; export const Headers = global.Headers; export const Request = global.Request; export const Response = global.Response;