-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React 17 Compatibility #111
React 17 Compatibility #111
Comments
Getting the same error |
me too... |
Same here |
I am getting the same error ...Is there any solution to run I am new to react native and been stuck with this for days.. |
should be fixed in v0.2.3 |
Thanks for your response. edit: to me it looks like |
Same error. Can't install @react-navigation/stack as it relies on @react-native-community/masked-view. |
To make matters worse, https://github.com/react-navigation/stack is archived. |
https://github.com/react-navigation/stack has been archived, but replaced by https://github.com/react-navigation/react-navigation/tree/main/packages/stack. This says to install using But that says to install @react-navigation/native using But now when I run
So it looks to me like react-navigation/stack is saying it needs ^6.0.0 of react-navigation/native, but I've got 6.0.0-next.1, which doesn't count. I've successfully installed react-navigation/stack by telling npm to ignore that unmet dependency: Interestingly, the example on https://reactnavigation.org/docs/6.x/hello-react-navigation which you can run in Snack has the same problem resolving the dependencies in package.json, and won't run at all. It looks to me as though we just have to sit and wait for the package maintainers to sort out their dependencies, and for the React Native documentation maintainers to update their instructions around navigation. |
Hmm - after trying to go back to v5.x of react-navigation to see if that worked, I came across react-navigation/react-navigation#9459, so then tried installing the react-navigation dependencies using the yarn instructions from https://reactnavigation.org/docs/6.x/getting-started instead of npm, and it seems to be working just fine:
|
I just installed all the React Navigation packages, including @react-native-community/masked-view (v0.1.10), using yarn instead of npm and it worked. |
Same problem. Any update? |
How to install all the package? |
Hey guys, any update on this? |
Anyone able to solve this? Still having porblem installing @react-native-community/masked-view , and react navigation stack... any update on that? |
I use Yarn add instead of npm install! Its work <3 |
Use yarn add instead of npm install |
Hey @dirtyvu255 , were you able to install the |
Problem is still present any word on when this issue will be fixed ? |
Hello, sorry for the inconvenience this has been causing. Please consider using patch-package https://www.npmjs.com/package/patch-package to add the required change to the package.json. |
The easiest fix is to use yarn instead of npm and patch-package ignores the package.json by default so that is not a good solution @Naturalclar |
There is a problem with react@17 and above. It does support @react-native-community/masked-view": "^0.1.10". "dependencies": { This worked for me. Although pls let me know once it started working on react 17 and above. |
I've got the release permission for the old namespace, and released Please note that this is just a escape hatch for those who are using I'm not planning to maintain |
try with |
I installed "npm install --save @react-native-masked-view/masked-view" It worked for me. |
Closing as the issue is resolved in the latest version |
brother, I had a similar problem yesterday! I fixed it by entering the @react-navigation folder that is inside node_modules and replacing the @react-native-masked-view/masked-view import with @react-native-community/masked-view. The replacement was done inside this MaskedViewNative.tsx file This was because in my project I had both libs installed, I removed the @react-native-masked-view/masked-view and I only had this @react-native-community/masked-view. The bad part is that every time we give yarn to install the dependencies these import modifications will return to their initial state. I still haven't had time to see if the @react-navigation lib has already changed this by default, but I believe there is already an update on this, hope I helped :)) |
Hello,
I'm new to React and React Native, so please bear with me if this a dumb question.
I started a new project, which came with
and when I followed the official documentation on adding navigation, I ran the suggested command
This command failed with
I then looked for
react-native-community/masked-view
, which led me to https://www.npmjs.com/package/@react-native-community/masked-view, where it says the package is at version 0.1.0. There was a link to a repo though - this one.Here, the latest release is
v0.2.3
, well above the0.1.0
. Coincidentally, this version claims tofix: peerDependencies support React 17
.There are two questions: Is
@react-native-community/masked-view
indeed the same thing as the@react-native-masked-view/masked-view
from this repo?If so, why are the version numbers so different? Otherwise, why does the NPM page link here?
The text was updated successfully, but these errors were encountered: