config-plugins/react-native-pdf
Config plugin to auto-configure react-native-pdf
when the native code is generated (npx expo prebuild
).
Add the package to your npm dependencies
Tested against Expo SDK 47
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.