React Native Accessing view manager configs directly off UIManager via UIManager['AIRMap'] is no longer supported

bh03lj picture bh03lj · Feb 24, 2019 · Viewed 7.8k times · Source

I'm getting the following warning "Accessing view manager configs directly off UIManager via UIManager['AIRMap'] is no longer supported. Use UIManager.getViewManagerConfig('AIRMap') instead". Its been showing since I have installed the react-native-maps package. Should I ignore it or its there a solution for it?

Thanks in advance

Answer

Greg T picture Greg T · Sep 19, 2019

This is fixed by downgrading "react-native-gesture-handler" to 1.3.0. You also need to clear the cache or you'll continue to see the warning.

  1. Modify your package.json:

"react-native-gesture-handler": "~1.3.0"

  1. Reinstall dependencies:

npm install or yarn install

  1. Restart expo with a clear cache:

expo r -c