Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
smaye81 committed Dec 12, 2024
1 parent 650ecc2 commit 6b7fc4a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions react-native/app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from "react";
import { fetch } from "expo/fetch";
import { fetch, FetchRequestInit } from "expo/fetch";
import {
Button,
Dimensions,
Expand Down Expand Up @@ -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<Response>;
return fetch(
input,
init as unknown as FetchRequestInit,
) as unknown as Promise<Response>;
},
}),
);
Expand Down

0 comments on commit 6b7fc4a

Please sign in to comment.