Skip to content

Commit

Permalink
fixes: issue #13 MaskedView can't be used anywhere else in the project
Browse files Browse the repository at this point in the history
  • Loading branch information
vemarav committed Jan 9, 2022
1 parent d091082 commit 491d85b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 62 deletions.
9 changes: 5 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"files.autoSave": "afterDelay",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
"files.autoSave": "afterDelay",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.hover.delay": 3000
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ Download apk to see it in action, [click to download](https://reactnativeavatarc
| ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| ![video](https://github.com/vemarav/react-native-avatar-crop/raw/main/screenshots/demo.gif) | ![video](https://github.com/vemarav/react-native-avatar-crop/raw/main/screenshots/demo2.gif) |


## Installation

> Note: Please migrate to @react-native-masked-view/masked-view if using @react-native-community/masked-view
npm

```
Expand Down
4 changes: 1 addition & 3 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5689,10 +5689,8 @@ react-is@^16.13.0, react-is@^16.7.0, react-is@^16.8.1:
resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz"
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==

react-native-avatar-crop@^1.3.3:
"react-native-avatar-crop@file:../package":
version "1.3.3"
resolved "https://registry.yarnpkg.com/react-native-avatar-crop/-/react-native-avatar-crop-1.3.3.tgz#25a9baf1f7c82e858007f02cd0b39123495ac89f"
integrity sha512-h8ucFsPpbB0SkPWp0K5DyvvrdzGuS9zbptscHKETGLZEjvLZ9+cJMxvwcB5+tB1XccAJm58cXKvyxzOGFmo8uw==

react-native-codegen@^0.0.7:
version "0.0.7"
Expand Down
2 changes: 2 additions & 0 deletions package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Download apk to see it in action, [click to download](https://reactnativeavatarc

## Installation

> Note: Please migrate to @react-native-masked-view/masked-view if using @react-native-community/masked-view
npm

```
Expand Down
4 changes: 2 additions & 2 deletions package/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-avatar-crop",
"version": "1.3.3",
"version": "1.3.4",
"description": "Crop component to crop profile images",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion package/src/crop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
GestureEvent,
} from "react-native-gesture-handler";

import MaskedView from "./masked";
import MaskedView from "@react-native-masked-view/masked-view";
import {
Size,
round,
Expand Down
50 changes: 0 additions & 50 deletions package/src/crop/masked.tsx

This file was deleted.

0 comments on commit 491d85b

Please sign in to comment.