Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
xcarpentier committed Jan 6, 2020
1 parent 4e1ed07 commit 7e09087
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 26 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
<a href="https://exp.host/@xcarpentier/rn-pdf-reader-example">💥 DEMO 💥</a>
</p>

## Read a PDF just with JS (no native libs needed)
# Read a PDF just with JS (no native libs needed)

## Requirements

- 👉**Install react-native-webview** on your own!
- 👉**Install expo-file-system** on your own!
- 👉**Install expo-constants** on your own!
- Use it into Expo app (from expo client, Standalone app or ExpoKit app).
- Only React-Native 0.60+ support, **Expo SDK 33-36+**

## Limitations

Expand All @@ -28,9 +36,8 @@

```tsx
import * as React from 'react'
import { StyleSheet, View } from 'react-native'
import { View } from 'react-native'
import PDFReader from 'rn-pdf-reader-js'
import Constants from 'expo-constants'

export default class App extends React.Component {
render() {
Expand Down Expand Up @@ -65,11 +72,6 @@ interface Props {
}
```

## Requirements

- Use it into Expo app (from expo client, Standalone app or ExpoKit app).
- Only React-Native 0.60+ support, **Expo SDK 36**

## Features

- **For Android, use react-pdf / pdfjs in the webview**
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "rn-pdf-reader-js",
"version": "0.4.1",
"version": "0.4.2",
"description": "PDF reader for Expo",
"main": "lib/index.js",
"main": "node_modules/expo/AppEntry.js",
"types": "lib/index.d.ts",
"author": "Xavier Carpentier <xcapetir@gmail.com> (https://xaviercarpentier.com/)",
"license": "MIT",
Expand Down Expand Up @@ -33,19 +33,16 @@
"url": "git+https://github.com/xcarpentier/rn-pdf-reader-js.git"
},
"peerDependencies": {
"expo": "*",
"expo-constants": "*",
"expo-file-system": "*",
"react": "*",
"expo": ">= 33.0.x < 37.0.x",
"expo-constants": ">= 5.0.0 < 9.x",
"expo-file-system": ">= 5.0.0 < 9.x",
"react": "16.x",
"react-native": "*",
"react-native-webview": "*"
"react-native-webview": ">= 7.0.5 < 8.x"
},
"dependencies": {
"buffer": "5.1.0",
"expo-constants": "~8.0.0",
"expo-file-system": "~8.0.0",
"js-base64": "2.4.5",
"react-native-webview": "7.4.3"
"js-base64": "2.4.5"
},
"devDependencies": {
"@types/js-base64": "2.3.1",
Expand All @@ -57,7 +54,10 @@
"expo": "^36.0.2",
"json": "^9.0.6",
"react": "16.9.0",
"expo-constants": "~8.0.0",
"expo-file-system": "~8.0.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz",
"react-native-webview": "7.4.3",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "3.7.4"
Expand Down
Loading

0 comments on commit 7e09087

Please sign in to comment.