@bacons/expo-metro-runtime
Version:
Tools for making experimental Metro bundler features work
19 lines • 595 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchAsync = void 0;
const react_native_1 = require("react-native");
async function fetchAsync(url) {
const response = await fetch(url, {
method: "GET",
headers: {
// No real reason for this but we try to use this format for everything.
"expo-platform": react_native_1.Platform.OS,
},
});
return {
body: await response.text(),
headers: response.headers,
};
}
exports.fetchAsync = fetchAsync;
//# sourceMappingURL=fetchAsync.js.map