Fix TS7016 when using PSPDFKit for React Native in a TypeScript project
When using PSPDFKit’s React Native library in a TypeScript project, you may encounter the error message TS7016: Could not find declaration file.
A workaround for this error is creating a declaration file for PSPDFKit in your project.
Create a file called typings.d.ts
and add the following to it:
declare module "react-native-pspdfkit"