Check out example codes for "pdf viewer ionic 4". It will help you in understanding the concepts better.

Code Example 1

ionic cordova plugin add cordova-plugin-document-viewer
npm install @ionic-native/document-viewer

import { DocumentViewer } from '@ionic-native/document-viewer/ngx';
constructor(private document: DocumentViewer) { }
const options: DocumentViewerOptions = {
  title: 'My PDF'
}
this.document.viewDocument('assets/myFile.pdf', 'application/pdf', options)

Learn ReactJs, React Native from akashmittal.com