react-fast-pdf

Awesome PDF viewer, that combines the best of others into one tool.

Example

Features

  • Simple usage.
  • Loads/previews PDF files of any size.
  • Performance optimized.
  • Easy customized.
  • Support by Expensify.

Local testing

Actually, for testing changes locally, we need to connect example to the code from src directory (NPM by default).

Update a few fields in example directory:

  1. package.json:
-"react-fast-pdf": "^1.*"
+"react-fast-pdf": "../src"
  1. tsconfig.json:
-"rootDir": "./src"
+"rootDir": "../"
  1. Run npm i in the directory. It should update package-lock.json.

The final result has to look like in this commit.

Deploying

This repo automatically publishes to NPM when PRs are merged to main.

Contributing

Right now, contributions to this library are done under https://github.com/Expensify/App. Please refer to that repo and all it's guidelines for contributing.