diff --git a/react-native/app/index.tsx b/react-native/app/index.tsx index b5090147e..0790a12a9 100644 --- a/react-native/app/index.tsx +++ b/react-native/app/index.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { fetch } from "expo/fetch"; +import { fetch, FetchRequestInit } from "expo/fetch"; import { Button, Dimensions, @@ -44,7 +44,10 @@ function Index() { "expo/fetch requires the first argument to be a string URL", ); } - return fetch(input, init) as unknown as Promise; + return fetch( + input, + init as unknown as FetchRequestInit, + ) as unknown as Promise; }, }), );