Comments (6)
Ran into the same issue.
The problem here is that this package defined react-native-fast-image
as a dependency but it should be in peerDependencies
instead.
Ref:
react-native-image-modal/package.json
Lines 69 to 71 in 62e93f5
The technical reason this happens is because yarn
may install react-native-fast-image
twice on two separate versions.
➜ yarn why react-native-fast-image
├─ x@workspace:.
│ └─ react-native-fast-image@npm:8.3.7 [ceb3f] (via npm:^8.3.2 [ceb3f])
│
├─ react-native-image-modal@npm:2.0.3
│ └─ react-native-fast-image@npm:8.3.4 (via npm:8.3.4)
│
└─ react-native-image-modal@npm:2.0.3 [ceb3f]
└─ react-native-fast-image@npm:8.3.4 [74cfa] (via npm:8.3.4 [74cfa])
Notice how both 8.3.7 and 8.3.4 are installed.
The correct way to fix this would be to make it a peer dependency however. The installation guide mentions it needs to be installed in the parent project anyways: https://github.com/dev-yakuza/react-native-image-modal#installation
I'll open a PR shortly with a fix.
from react-native-image-modal.
downgrading to version 1.0.16 works for me, no more "Invariant Violation: Tried to register two views with the same name FastImageView"
from react-native-image-modal.
Thanks for reporting.
However, I can't investigate this issue. So, could you give me more details? (e.g. sample code, details about the situation, how to make the same error)
Thanks.
from react-native-image-modal.
I get the same error:
ERROR Invariant Violation: Tried to register two views with the same name FastImageView
Does anyone have a solution yet?
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
It seems to happen after the upgrade from Expo 39 to Expo 40
from react-native-image-modal.
This library does not support Expo anymore. Because this library uses
react-native-fast-image
.
Please check the README
.
from react-native-image-modal.
Try installing [email protected]
from react-native-image-modal.
Related Issues (20)
- android imageModal does not cover statusBar HOT 2
- Add modalRef open method
- i can't interative with custom renderFooter
- modalImageStyle doesn't works
- Change Request: replace react-native-fast-image by expo-image HOT 1
- question about performance
- Image in modal is blur in Android HOT 7
- Styling issue for model image HOT 5
- Multiple image slider HOT 2
- Use auto height HOT 3
- modalImageResizeMode not working HOT 2
- Android Only - Images when opened are blurry HOT 1
- Add Dependabot
- Add Linter and GitHub actions
- Add test code
- Change husky and lint-staged to Lefthook
- Add CSpell to check typo
- Add Remark linter to check markdown files
- Add Stylelint
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-image-modal.