|
| 1 | +--- |
| 2 | +title: Recommended Plugins |
| 3 | +description: Recommended plugins for when core doesn't support it... |
| 4 | +contributors: |
| 5 | + - rigor789 |
| 6 | +--- |
| 7 | + |
| 8 | +This page serves as a quick reference for finding plugins for commonly used features. Feel free to request additional plugins to be listed here by submitting a request on the [Docs GitHub Repository](https://github.com/NativeScript/docs/issues/new?title=[request]%20add%20`xyz`%20to%20the%20recommended%20plugins&body=%3C!--%20Please%20fill%20this%20with%20more%20details,%20and%20make%20sure%20to%20update%20the%20issue%20title.%20--%3E). |
| 9 | + |
| 10 | +## WebSockets |
| 11 | + |
| 12 | +### @valor/nativescript-websockets |
| 13 | + |
| 14 | +For web-compatible WebSockets, we recommend installing the [`@valor/nativescript-websockets`](https://www.npmjs.com/package/@valor/nativescript-websockets) plugin: |
| 15 | + |
| 16 | +::: code-group |
| 17 | + |
| 18 | +```cli [NPM] |
| 19 | +npm i --save @valor/nativescript-websockets |
| 20 | +``` |
| 21 | + |
| 22 | +```cli [Yarn] |
| 23 | +yarn add @valor/nativescript-websockets |
| 24 | +``` |
| 25 | + |
| 26 | +::: |
| 27 | + |
| 28 | +## Image Caching |
| 29 | + |
| 30 | +For image-heavy applications, it's a good practice to adopt an image-caching strategy that helps keep the memory usage down (remote images are cached after first download for example). |
| 31 | + |
| 32 | +### @triniwiz/nativescript-image-cache-it |
| 33 | + |
| 34 | +One of the go-to plugins is [`@triniwiz/nativescript-image-cache-it`](https://www.npmjs.com/package/@triniwiz/nativescript-image-cache-it). It uses `SDWebImage` on iOS and `Glide` on android. |
| 35 | + |
| 36 | +::: code-group |
| 37 | + |
| 38 | +```cli [NPM] |
| 39 | +npm i --save @triniwiz/nativescript-image-cache-it |
| 40 | +``` |
| 41 | + |
| 42 | +```cli [Yarn] |
| 43 | +yarn add @triniwiz/nativescript-image-cache-it |
| 44 | +``` |
| 45 | + |
| 46 | +::: |
| 47 | + |
| 48 | +### @nativescript-community/ui-image |
| 49 | + |
| 50 | +Another great plugin is from the NativeScript-Community ['@nativescript-community/ui-image'](https://www.npmjs.com/package/@nativescript-community/ui-image). It uses `SDWebImage` on iOS and `Fresco` on android. |
| 51 | + |
| 52 | +::: code-group |
| 53 | + |
| 54 | +```cli [NPM] |
| 55 | +npm i --save @nativescript-community/ui-image |
| 56 | +``` |
| 57 | + |
| 58 | +```cli [Yarn] |
| 59 | +yarn add @nativescript-community/ui-image |
| 60 | +``` |
| 61 | + |
| 62 | +::: |
| 63 | + |
| 64 | +## Text |
| 65 | + |
| 66 | +### @nativescript-community/ui-label |
| 67 | + |
| 68 | +As an alternative to the core [Label](/ui/label), check out [`@nativescript-community/ui-label`](https://www.npmjs.com/package/@nativescript-community/ui-label). |
| 69 | + |
| 70 | +::: code-group |
| 71 | + |
| 72 | +```cli [NPM] |
| 73 | +npm i --save @nativescript-community/ui-label |
| 74 | +``` |
| 75 | + |
| 76 | +```cli [Yarn] |
| 77 | +yarn add @nativescript-community/ui-label |
| 78 | +``` |
| 79 | + |
| 80 | +::: |
| 81 | + |
| 82 | +## HTTP |
| 83 | + |
| 84 | +### @nativescript-community/https |
| 85 | + |
| 86 | +A drop-in replacement for the core HTTP with improvements and additions like connection pooling, form data support and certificate pinning. Check out [`@nativescript-community/https`](https://www.npmjs.com/package/@nativescript-community/https). |
| 87 | + |
| 88 | +::: code-group |
| 89 | + |
| 90 | +```cli [NPM] |
| 91 | +npm i --save @nativescript-community/https |
| 92 | +``` |
| 93 | + |
| 94 | +```cli [Yarn] |
| 95 | +yarn add @nativescript-community/https |
| 96 | +``` |
| 97 | + |
| 98 | +::: |
| 99 | + |
| 100 | +### @klippa/nativescript-http |
| 101 | + |
| 102 | +A drop-in replacement for the core HTTP with improvements and additions like connection pooling, form data support and certificate pinning. Check out [`@klippa/nativescript-http`](https://www.npmjs.com/package/@klippa/nativescript-http). |
| 103 | + |
| 104 | +::: code-group |
| 105 | + |
| 106 | +```cli [NPM] |
| 107 | +npm i --save @klippa/nativescript-http |
| 108 | +``` |
| 109 | + |
| 110 | +```cli [Yarn] |
| 111 | +yarn add @klippa/nativescript-http |
| 112 | +``` |
| 113 | + |
| 114 | +::: |
0 commit comments