react-native-volley
Version:
React Native wrapper for the Volley HTTP library for Android
22 lines (21 loc) • 479 B
TypeScript
declare type OptionsType = {
method?: string;
headers?: {
[index: string]: string;
};
cache?: string;
body?: string;
};
declare type ResponseType = {
ok: boolean;
status: number;
statusText: string;
headers: Headers;
text: Function;
json: Function;
};
declare type VolleyType = {
fetch(url: string | null, opts?: Partial<OptionsType>): Promise<ResponseType>;
};
declare const _default: VolleyType;
export default _default;