Skip to content

Commit

Permalink
PR updates
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeTerminal committed Oct 18, 2019
1 parent 87137a6 commit 06b65c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $ yarn add villain-react

## Development

- Run `yarn install` in the console
- Run `yarn` in the console
- An example archive has been provided to play around with in `/build/testFiles`.
- To replace it with another file, in `/examples/index.js` modify the path of `testFile2` to equal `'/build/testFile/newFilename.extension'`.
- A good resource for archives can be found here: https://archive.org/details/comics. Alternative, any compressed folder (zip, rar, tar, etc) with a few images will also do the job.
Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ const villainOpts = {
allowFullScreen: false,
}

const testFile = '/build/test_files/archive.cbz'
const testFile2 = '/build/testFiles/Example-archive.zip'
const testFile = '/build/testFile/Example-archive.zip'

ReactDOM.render(
<div>
<h1> Test example! </h1>
<Villain file={testFile2} options={villainOpts} />
<Villain file={testFile} options={villainOpts} />
</div>,
document.getElementById('app')
)

0 comments on commit 06b65c7

Please sign in to comment.