Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #65 from DuDigital/Correct-onZoomAfter-event-to-be…
Browse files Browse the repository at this point in the history
…-triggered-always

Correct on zoom after event to be triggered always
  • Loading branch information
Simon Auer authored Jun 11, 2021
2 parents 4ab9186 + 5e63f5e commit 2575934
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 8 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Editor configuration, see
# https://editorconfig-specification.readthedocs.io/en/latest/#supported-pairs

root = true

[**]
charset = utf-8
indent_size = 2
indent_style = space

[{src/**,test/**}]
end_of_line = crlf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = unset
6 changes: 4 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"printWidth": 120,
"trailingComma": "all",
"singleQuote": true
"endOfLine": "crlf",
"quoteProps": "consistent",
"singleQuote": true,
"trailingComma": "all"
}
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,12 @@ Are you looking to help out and improve this project?<br />
Either submit Pull requests with awesome changes or reach out to me on Twitter: https://twitter.com/SimonEritsch<br />
Helping hands are always appreciated! :)

### How to contribute

Just clone the example repository: https://github.com/DuDigital/react-native-zoomable-view-example

Adjust the package in the typescript files in `node_modules/@dudigital/react-native-zoomable-view` folder, while running `npm transpile` **in that folder** as well.
(the transpile command will make sure to transpile the typescript code into javascript)

// We definitely need a better process here. If you have any ideas - please open an issue or PR about a solution. ;)
// We would really appreciate it
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
{
"name": "@dudigital/react-native-zoomable-view",
"version": "1.0.17",
"version": "1.1.3",
"description": "A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"build": "rollup -c",
"start": "rollup -c -w",
"transpile": "rollup -c -w",
"test": "echo \"Error: no test specified\" && exit 1",
"format": "prettier --write \"src/**/*.ts\"",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags"
"postversion": "git push && git push --tags",
"prepare": "npm run build"
},
"prepare": "npm run build",
"files": [
"dist"
"dist",
"src"
],
"repository": {
"type": "git",
Expand Down Expand Up @@ -55,7 +57,8 @@
"rollup": "^2.51.1",
"rollup-plugin-typescript2": "^0.30.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.3.2"
},
"peerDependencies": {
"react": ">=16.8.0",
Expand Down

0 comments on commit 2575934

Please sign in to comment.