Library or plugin

Hi !

For you what is the best solution : a plugin or a js library ? A js library can slow the ionic app or there is no difference with a plugin ?

Thanks :slight_smile:

These are normally two different concepts that aren’t mutually exclusive.

Normally, a “plugin” is a Cordova plugin that has native code (Objective-C, Java, etc.) that has a JS library for use in Ionic.

A JS library…is everything else. At least those that are written in JS, including NPM packages, Ionic Native, and even 3rd party JS.

So, if you need native functionality create a plugin. Otherwise, just go with JS.

For example I want to use Tesseract but Tesseract exist with Tesseract.js or there a plugin too.

What is the best solution for you ?