question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: Accesing view manager configs for getConstants

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:28
  • Comments:38 (2 by maintainers)

github_iconTop GitHub Comments

197reactions
byCedriccommented, Mar 9, 2021

Edit, you can now use expo install react-native-gesture-handler. It will take care of everything I listed below. 😁 (Don’t forget to clean your cache with 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.

As of writing, the version required is ~1.3.0. Because NPM doesn’t play nice with the tilde (~) you might have to edit it manually in your package.json.

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
144reactions
hardrese7commented, Sep 3, 2019

hey guys, just downgrade react-native-gesture-handler to 1.3.0.

You can directly change version in your package.json to ~1.3.0 and run npm i/yarn or remove it and install through expo how described here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accessing view manager configs directly off UIManager via ...
javascript - Accessing view manager configs directly off UIManager via UIManager['getConstants'] is no longer supported - Stack Overflow. Stack ...
Read more >
[Solved]-Waning Accessing view manager configs directly off ...
Coding example for the question Waning Accessing view manager configs directly off UIManager via UIManager['getConstants']-React Native.
Read more >
Àlex Royo on Twitter: "New warning on #Expo #SDK34 for #Android ...
New warning on #Expo #SDK34 for #Android "Accessing view manager configs directly off UIManager via UIManager['getConstants'] is no longer supported.
Read more >
Configuring a Service - Oracle Help Center
By using ATS load scripts, you can: Reuse ATS testing scripts for production application transaction monitoring as part of application lifecycle management.
Read more >
How to use task sequence variables - Configuration Manager
In this article. Types of variables; How to set variables; How to access variables; See also. Applies to: Configuration Manager (current ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found