Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-pdf-view

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-pdf-view - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

index.js

4

package.json
{
"name": "react-native-pdf-view",
"version": "0.2.0",
"version": "0.2.1",
"description": "A pdf file view component for react native.",
"main": "PDFView.js",
"main": "index.js",
"repository": {

@@ -7,0 +7,0 @@ "type": "git",

@@ -32,5 +32,21 @@ # react-native-pdf-view

On newer versions of React Native (0.18+):
```java
import com.keyee.pdfview.PDFView; // <--- import
public class MainActivity extends ReactActivity {
......
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new PDFView(), // <------ add here
new MainReactPackage());
}
}
```
On older versions of React Native:
```java
import com.keyee.pdfview.PDFView; // <--- import
public class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {

@@ -93,3 +109,3 @@ ......

src={"sdcard/pdffile.pdf"}
onLoadComplete = {()=>{
onLoadComplete = {(pageCount)=>{
this.pdfView.setNativeProps({

@@ -117,2 +133,2 @@ zoom: 1.5

| zoom | number | 1.0 | zoom scale
| onLoadComplete | function | null | page load complete
| onLoadComplete | function | null | page load complete,return page count
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc