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
Same warning here, Expo SDKv34
hey guys, just downgrade
react-native-gesture-handler
to1.3.0
.You can directly change version in your
package.json
to~1.3.0
and runnpm i
/yarn
or remove it and install through expo how described hereThis 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 🙁
Hi, do we have any suggestions of how to fix this?
Remove react-native-gesture-handler with npm / yarn and then
expo install react-native-gesture-handler
like @hardrese7 saidCompile..
Edit, you can now use😁 (Don’t forget to clean your cache with
expo install react-native-gesture-handler
. It will take care of everything I listed below.expo start --clear
)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.
It worked for me. Thanks!
I’m using expo SDK version: “34.0.0”
and react-native-gesture-handler v 1.4.1 then I get warning,
use npm i react-native-gesture-handler@1.3.0 this worked
This solution worked for me. Thanks.
expo: ^35.0.0
expo-cli : 3.3.0
react-navigation : ^3.11.0
react-native-gesture-handler: ^1.3.0
mark.
waiting for a new version to fix it.
Any fix coming for people who /aren’t/ using expo?
Thanks. it helped me.
When I install same version of this module with
npm
oryarn
, it still showed to me a same error message.However, the error is no longer did not appear when I install the
Expo
.first run:
expo install react-native-gesture-handler
then run:
expo start –clear
This work for me,
First, delete the
node_modules
folder, then change the version of the handler in dependencies insidepackage.json
like this:"react-native-gesture-handler": "1.3.0"
After that, only run
npm install
and done.Fixed
For me downgrading RNGH version did not solve the problem. This is the manual fix that fixed it for me:
Go to ./node-modules/react-native-gesture-handler/createHandler.js and replace the following):
to:
Basically we’re doing what the yellow message warned. Hope this help.
Note: this fix might be ignored by your git repo.