At PSPDFKit, we support all major hybrid technologies, and as part of our quest to continuously improve our wrappers, we’ve added new APIs, improved existing ones, and fixed several issues.
In this article, we’ll highlight the recent advances made to our hybrid wrappers.
React Native
Our React Native wrapper is very popular, and the community contributing to it is very active. Over the last few months, we’ve fixed many issues, made some considerable improvements, and exposed a lot of native APIs. Here are some notable changes from our recent releases:
- Added the
toolbarTitle
configuration property to override the iOS toolbar title. - Added the
onDocumentLoadFailed
callback on Android and iOS. - Added JavaScript APIs to customize the toolbar on iOS.
- Added the
getAllAnnotations()
JavaScript API to query all annotations from a document. - Improved error handling for annotation manipulation functions on iOS.
- Improved document path resolution on Android.
- Updated the iOS integration steps to use CocoaPods by default.
- Fixed a memory leak issue in React Native for Windows with Newtonsoft.
For the full set of changes, please take a look at our recent releases here.
Cordova and Ionic
Our Cordova plugin is also very widely used. We’ve made some significant improvements and we exposed several native Android and iOS APIs to JavaScript:
- Added the ability to manipulate annotations programmatically.
- Added the programmatic forms API.
- Added the ability to import and export XFDF.
- Added document-processing APIs.
We also released a brand new and unified Cordova plugin for both Android and iOS. Take a look at our announcement blog post for more details.
Flutter
Flutter is the youngest of our wrappers, and we are seeing it gain a lot of popularity among our customers and partners. Here are a few highlights of our recent improvements:
- Added the ability to manipulate annotations programmatically.
- Added the ability to manipulate forms programmatically.
- Added the ability to programmatically unlock password-protected documents.
- Added the
showDocumentTitle
configuration option to allow users to toggle the visibility of the document title. - Added the ability to customize the toolbar buttons on iOS.
- Extended support for styling and configuration options.
- Exposed various configuration options like
showDocumentLabel
,settingsMenuItem
, and more.
Take a look at our recently merged pull requests for more details.
Electron, Appcelerator Titanium, and Xamarin
We’ve also updated our Electron, Titanium, and Xamarin wrappers to make sure they are fully compatible with the latest versions of PSPDFKit, tools, and operating systems.
Conclusion
All of our hybrid wrappers and plugins are open source and we welcome and encourage contributions from the community. If you wish to contribute or you simply want to learn more about how to extend native APIs, please take a look at the blog posts below to get started:
- How to Expose Native iOS APIs to Cordova
- Advanced Techniques for React Native UI Components
- How to Extend React Native APIs
- How to Extend React Native APIs for Windows
If you come across any missing APIs from any hybrid wrapper that you think would be useful to have, feel free to contact us or to submit a pull request to help improve our wrappers.