-
-
Notifications
You must be signed in to change notification settings - Fork 960
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
Warning: Accesing view manager configs for getConstants #742
Comments
Same warning here, Expo SDKv34
|
Any idea how I can we fix this? |
What i did was to change from expo to react-native init and the errror was gone |
hey guys, just downgrade You can directly change version in your |
This was introduced with this commit. It's not immediately clear whether overwriting UIManager.getConstants is even the right approach now that getViewManagerConfig is used... presumably to keep backwards compatibility you'd have to do both, but do a version check to prevent the warning on RN 60+. |
Downgrading react-native-gesture-handler to 1.3.0 didn't work for me :-( |
+1 |
+1 |
Hi, do we have any suggestions of how to fix this? |
+1 same warning |
I fixed my project, as I am using expo, installing this package with expo install, this downgraded mine at my package.json to 1.3.* from 1.4.* and now it works as it should. |
Remove react-native-gesture-handler with npm / yarn and then Compile.. |
Edit, you can now use For anyone using Expo, brent pointed out a way to fix it. Basically, you need to install the specific versions listed here.
But for those who want a quick fix, here are some commands that you can run to fix it. // make sure you have the latest expo-cli (if you have >=3.1.0, you can skip this)
$ npm install -g expo-cli@latest
// remove your node_modules and package-lock.json (just to be sure)
$ rm -rf node_modules package-lock.json
// check if you have `react-native-gesture-handler` listed already (if so **remove it**)
$ cat package.json | grep react-native-gesture-handler
// use expo to install the appropriate version
$ expo install react-native-gesture-handler
// start expo with a clean cache
$ expo start --clear |
It worked for me. Thanks! |
Also worket for me, Thank you! |
This solution worked for me. Thank alot. |
version 1.3.0 of |
I'm using expo SDK version: "34.0.0" |
This solution worked for me. Thanks. |
When you downgrade, it stops the |
mark. |
This solution worked for me. Thanks. expo install react-native-gesture-handler ( This command install the same version ~1.3.0 for me ) but I guess running this command expo start --clear do the trick. :) expo: ^35.0.0 |
Although using expo install above npm install solved a lot for me in other projects (thanks) i still have this issue. Even if i start a brand new expo-cli 3.4.4. project, I need to add gesture-handler since I want to use react-navigation and react-navigation-stack.
|
Any fix coming for people who /aren't/ using expo? |
It works for me. Thank you. |
Same for me... thank's |
This worked for me, thanks! |
Thanks. it helped me. |
first run: |
This did it for me. I had to run |
I have the same version ~1.3.0 but still getting the error. |
did you find the solution? |
This work for me, After that, only run Fixed |
For me downgrading RNGH version did not solve the problem. This is the manual fix that fixed it for me:
to:
Basically we're doing what the yellow message warned. Hope this help. Note: this fix might be ignored by your git repo. |
This worked for me, thanks! |
This actually worked. I cant believe it. |
Thanks Mate, it's better solution than others |
For those who cannot downgrade the library, you can hide the warning by doing:
|
When using RNGH 1.4.1 with RN 0.60 the following warning appears:
Accessing view manager configs directly off UIManager via UIManager['getConstants'] is no longer supported. Use UIManager.getViewManagerConfig('getConstants') instead.
The stack trace points at
createHandler.js:39
The text was updated successfully, but these errors were encountered: