Add note about URL polyfill for React Native

This commit is contained in:
Bill Thornton 2021-10-14 14:48:51 -04:00
parent d099b6b340
commit 3167b32e88

View File

@ -25,6 +25,12 @@ or
yarn add @thornbill/jellyfin-sdk
```
### React Native
The generated Axios client used in this library depends on `URL` and `URLSearchParams` to be available on the global scope.
React Native only includes incomplete implementations for these classes, so a polyfill is required.
[React Native URL Polyfill](https://github.com/charpeni/react-native-url-polyfill) should be a good solution fo this.
## Usage
```js