1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.fetchAsync = void 0;
4/**
5 * Copyright © 2022 650 Industries.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */
10const react_native_1 = require("react-native");
11async function fetchAsync(url) {
12    const response = await fetch(url, {
13        method: 'GET',
14        headers: {
15            // No real reason for this but we try to use this format for everything.
16            'expo-platform': react_native_1.Platform.OS,
17        },
18    });
19    return {
20        body: await response.text(),
21        headers: response.headers,
22    };
23}
24exports.fetchAsync = fetchAsync;
25//# sourceMappingURL=fetchAsync.js.map