Skip to content

Commit

Permalink
typescript it
Browse files Browse the repository at this point in the history
  • Loading branch information
xcarpentier committed Jan 6, 2020
1 parent 8a2b538 commit fe03ecd
Show file tree
Hide file tree
Showing 30 changed files with 5,645 additions and 4,733 deletions.
20 changes: 0 additions & 20 deletions .flowconfig

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ typings/
# dotenv environment variables file
.env
.expo/
react-pdf/dist
react-pdf/dist
lib
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
example
scripts
react-pdf
App.tsx
app.json
babel.config.js
metro.config.js
app.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"trailingComma": "all",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"jsxSingleQuote": true,
"printWidth": 80
}
4 changes: 1 addition & 3 deletions example/App.js → App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react'
import { StyleSheet, View } from 'react-native'
import PdfReader from 'rn-pdf-reader-js'
import { Constants } from 'expo'
import PdfReader from './src/'

export default class App extends React.Component {
render() {
Expand Down
22 changes: 22 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"expo": {
"name": "rn-pdf-reader-example",
"description": "PDF reader Example",
"slug": "rn-pdf-reader-example",
"privacy": "public",
"sdkVersion": "36.0.0",
"platforms": ["ios", "android", "web"],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./src/assets/images/icon.png",
"splash": {
"image": "./src/assets/images/splash.png"
},
"ios": {
"supportsTablet": true
},
"androidStatusBar": {
"backgroundColor": "#000000"
}
}
}
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ["babel-preset-expo"]
};
};
3 changes: 0 additions & 3 deletions bundleContainer.ios.js

This file was deleted.

15 changes: 0 additions & 15 deletions example/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions example/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion example/.watchmanconfig

This file was deleted.

31 changes: 0 additions & 31 deletions example/app.json

This file was deleted.

Binary file removed example/assets/icon.png
Binary file not shown.
Binary file removed example/assets/splash.png
Binary file not shown.
15 changes: 0 additions & 15 deletions example/package.json

This file was deleted.

22 changes: 0 additions & 22 deletions example/rn-cli.config.js

This file was deleted.

Loading

0 comments on commit fe03ecd

Please sign in to comment.