Some test text!

Loading...
Guides
How do I use PDFTron React Native with TypeScript?

How do I use PDFTron React Native with TypeScript?

Our library has support for JavaScript as well as TypeScript. To use our library with either language, follow these installation instructions.

For existing users:

  • If you already use TypeScript, simply update your react-native-pdftron dependency to version 3.0.0 or higher to gain access to our typings.
  • If you want to migrate to TypeScript, see Adding TypeScript to an Existing Project.
  • If you do not use TypeScript and don't want to, you can continue to use and update our library as before. Updating to version 3.0.0 will not automatically download TypeScript as a dependency.

Note: TypeScript version 3.4.1+ is recommended. Although compilation still works with lower versions, typings may degrade to any.

For more information, see our TypeScript section.

Get the answers you need: Support

Upcoming Webinar: SDK Features Preview and Live Run-Through | July 14, 2022 at 11 am PT

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use