diff --git a/.prettierrc b/.prettierrc index e6a1cda..d86cb36 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,7 +1,7 @@ { "printWidth": 120, - "endOfLine": "crlf", + "endOfLine": "lf", "quoteProps": "consistent", "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/README.md b/README.md index cb6b930..ac1b522 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,7 @@ These options can be used to limit and change the zoom behavior. | movementSensibility | number | how resistant should shifting the view around be? (0.5 - 5) - higher is less sensitive | 1.9 | | initialOffsetX | number | The horizontal offset the image should start at | 0 | | initialOffsetY | number | The vertical offset the image should start at | 0 | +| contentAspectRatio | number | To provide if the children does not have the same aspect ratio as ReactNativeZoomableView | ReactNativeZoomableView onMount's aspect ratio | | longPressDuration | number | Duration in ms until a press is considered a long press | 700 | | captureEvent | boolean | Defines whether the pan responder of the parent element should be captured. (useful for react-native modals, set it to true) | false | diff --git a/src/ReactNativeZoomableView.tsx b/src/ReactNativeZoomableView.tsx index 989d909..e30b04b 100644 --- a/src/ReactNativeZoomableView.tsx +++ b/src/ReactNativeZoomableView.tsx @@ -267,12 +267,13 @@ class ReactNativeZoomableView extends Component nothing do here if (bindToBorders === false || (bindToBorders === null && !this.props.bindToBorders)) { return changeObj; @@ -352,6 +355,28 @@ class ReactNativeZoomableView extends Component