PSPDFKit 2.3 migration guide
PSPDFKit 2.3 for React Native brings Toolbar
customization PSPDFKitView
properties to Android. This means that the following configuration options will be deprecated in the future releases:
<PSPDFKitView configuration : { androidShowReaderView: true, androidShowSearchAction: true, androidShowOutlineAction: true, androidShowBookmarksAction: true, androidShowShareAction: true, androidShowPrintAction: true, androidShowSettingsMenu: true, androidShowDocumentInfoView: true } />
These were replaced by the PSPDFKitView
properties below:
<PSPDFKitView document={DOCUMENT} // Only iOS. leftBarButtonItems={['settingsButtonItem']} rightBarButtonItems={[ 'searchButtonItem', 'thumbnailsButtonItem', 'annotationButtonItem', ]} // New way to customize toolbar items from Android. toolbarMenuItems={[ 'annotationButtonItem', 'settingsButtonItem', 'searchButtonItem', 'thumbnailsButtonItem', ]} ref="pdfView" />
The toolbar menu item names are the same for both iOS and Android, but not all are available on both. Check out the main toolbar guides for a full list of available menu item names.