diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c2658d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/ diff --git a/library/TransformableImage.js b/library/TransformableImage.js index 17dd7d3..bfbc6a4 100644 --- a/library/TransformableImage.js +++ b/library/TransformableImage.js @@ -83,21 +83,20 @@ export default class TransformableImage extends Component { } } + const viewTransformerDelegation = Object.keys(ViewTransformer.propTypes).reduce( + (acc, prop) => (this.props[prop] ? { ...acc, [prop]: this.props[prop] } : acc), {} + ); return (