
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
@config-plugins/react-native-pdf
Advanced tools
Config plugin to auto configure react-native-pdf on prebuild
Consider using a WebView or WebBrowser to quickly display a PDF in your app. Read the alternatives section to learn more.
Config plugin to auto-configure react-native-pdf when the native code is generated (npx expo prebuild).
Ensure you use versions that work together!
expo | react-native-pdf | @config-plugins/react-native-pdf |
|---|---|---|
| 55.0.0 | 7.0.4 | 13.0.0 |
| 54.0.0 | 6.7.7 | 12.0.0 |
| 53.0.0 | 6.7.7 | 11.0.0 |
| 52.0.0 | 6.7.6 | 9.0.0 |
| 51.0.0 | 6.7.5 | 8.0.0 |
| 50.0.0 | 6.7.4 | 7.0.0 |
| 49.0.0 | 6.7.1 | 6.0.0 |
| 48.0.0 | 6.6.2 | 5.0.0 |
This package cannot be used in the "Expo Go" app because it requires custom native code.
First install the package with yarn, npm, or npx expo install.
npx expo install react-native-pdf react-native-blob-util @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:
{
"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.
Consider opening a WebBrowser to display a PDF:
import * as WebBrowser from "expo-web-browser";
import { Text } from "react-native";
export default function HomeScreen() {
return (
<Text
onPress={() => {
WebBrowser.openBrowserAsync(
"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
);
}}
>
Open in-app browser
</Text>
);
}
Or inside a WebView for a contained view:
import { WebView } from "react-native-webview";
export default function HomeScreen() {
return (
<WebView
style={{ width: 100, height: 100 }}
source={{
uri: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
}}
/>
);
}
Alternatively, if users have a favorite PDF viewer app than consider using Share API to let users open the PDF in their preferred app. This is akin to how UIDocumentInteractionController is intended to be used on iOS.
Finally, you could use DOM Components for a custom web experience.
FAQs
Config plugin to auto configure react-native-pdf on prebuild
The npm package @config-plugins/react-native-pdf receives a total of 58,802 weekly downloads. As such, @config-plugins/react-native-pdf popularity was classified as popular.
We found that @config-plugins/react-native-pdf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.