1/**
2 * Copyright © 2022 650 Industries.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7export async function fetchAsync(url: string): Promise<{ body: string; headers: Headers }> {
8  const response = await fetch(url, {
9    method: 'GET',
10    headers: {
11      // No real reason for this but we try to use this format for everything.
12      'expo-platform': 'web',
13    },
14  });
15  return {
16    body: await response.text(),
17    headers: response.headers,
18  };
19}
20