Show the PSPDFKitView close button
The PSPDFKitView
can display a close (or back) button in the top-left corner of the main toolbar. This allows you to dismiss the currently displayed PSPDFKitView
.
By default, the close button is hidden. To show the close button, you need to set the showNavigationButtonInToolbar
prop in Android and the showCloseButton
prop in iOS to true
, like so:
<PSPDFKitView document={DOCUMENT} showNavigationButtonInToolbar={true} // Show the navigation back button on Android. showCloseButton={true} // Show the close button (X) on iOS. ref="pdfView" fragmentTag="PDF1" />