
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
react-native-pdf-reader
Advanced tools
RN component to render a local PDF from a file URI
$ npm install react-native-pdf-reader --save
From RN 0.61+ it is linked automatically
TODO: for automatic installation, podspec should be in project root
Else, for previous versions ..
$ react-native link react-native-pdf-reader
Libraries ➜ Add Files to [your project's name]node_modules ➜ react-native-pdf-reader and add RNPdfReader.xcodeprojlibRNPdfReader.a to your project's Build Phases ➜ Link Binary With LibrariesCmd+R)<android/app/src/main/java/[...]/MainActivity.javaimport com.reactlibrary.RNPdfReaderPackage; to the imports at the top of the filenew RNPdfReaderPackage() to the list returned by the getPackages() methodandroid/settings.gradle:include ':react-native-pdf-reader'
project(':react-native-pdf-reader').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pdf-reader/android')
android/app/build.gradle:compile project(':react-native-pdf-reader')
import RNPdfReader from 'react-native-pdf-reader';
...
<PdfViewer src={pdfPath} style={{ flex: 1 }} />
| prop | type | default value |
|---|---|---|
src | string | - |
srcLastPage | string | - (intended to render the last pdf's page) |
style | object | - |
FAQs
RN component to embed a local PDF
We found that react-native-pdf-reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.