Files
config-plugins/packages/react-native-pdf
Evan Bacon d6050beb2a chore: git ignore build folders (#59)
* chore: git ignore all package build folders in git

* chore: clear all package build folders
2022-03-22 13:27:18 -05:00
..
2022-03-16 00:20:48 +00:00
2022-03-16 00:20:48 +00:00

config-plugins/react-native-pdf

Config plugin to auto configure react-native-pdf when the native code is generated (expo prebuild).

Add the package to your npm dependencies

Tested against Expo SDK 44

yarn add react-native-pdf react-native-blob-util fbjs @config-plugins/react-native-pdf @config-plugins/react-native-blob-util

After installing this npm package, add the config plugin to the plugins array of your app.json or app.config.js:

{
  "expo": {
    "plugins": [
      "@config-plugins/react-native-blob-util",
      "@config-plugins/react-native-pdf"
    ]
  }
}

Next, rebuild your app as described in the "Adding custom native code" guide.

This plugin is Android-only, and adds packaging options to the android/app/build.gradle dangerously.