Can't find variable: URLSearchParams
In React Native, I would like to abstraction the URLSearchParams, so I write this class:
export class HttpSearchParamsAdapter extends URLSearchParams implements HttpSearchParams {
constructor() {
super();
}
set(param: string, val: string): void {
super.set(param, val);
}
}
But when I create my application I have this error: I cannot find the variable: URLSearchParams. I am using URLSearchParams from es6.
+3
source to share
1 answer
URLSearchParams
not supported on iOS.
https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
+1
source to share