Development Workflow
Recommended Plugins
Recommended plugins for when core doesn't support it...
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.
WebSockets
@valor/nativescript-websockets
For web-compatible WebSockets, we recommend installing the @valor/nativescript-websockets
plugin:
npm i --save @valor/nativescript-websockets
yarn add @valor/nativescript-websockets
Image Caching
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).
@triniwiz/nativescript-image-cache-it
One of the go-to plugins is @triniwiz/nativescript-image-cache-it
. It uses SDWebImage
on iOS and Glide
on android.
npm i --save @triniwiz/nativescript-image-cache-it
yarn add @triniwiz/nativescript-image-cache-it
@nativescript-community/ui-image
Another great plugin is from the NativeScript-Community '@nativescript-community/ui-image'. It uses SDWebImage
on iOS and Fresco
on android.
npm i --save @nativescript-community/ui-image
yarn add @nativescript-community/ui-image
Text
@nativescript-community/ui-label
As an alternative to the core Label, check out @nativescript-community/ui-label
.
npm i --save @nativescript-community/ui-label
yarn add @nativescript-community/ui-label
HTTP
@nativescript-community/https
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
.
npm i --save @nativescript-community/https
yarn add @nativescript-community/https
@klippa/nativescript-http
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
.
npm i --save @klippa/nativescript-http
yarn add @klippa/nativescript-http