NativeUIManager.getConstantsForViewManager('Text') threw an exception.Calling synchronous methods on native modules is not supported in Chrome aaa

Viewed 279

I used react-native Element and my device show an Error to me in Debugger

NativeUIManager.getConstantsForViewManager('Text') threw an exception.Calling synchronous methods on native modules is not supported in Chrome

image

1 Answers

I was on version 0.65.1 (look at package.json for your version) I noticed a new version has been released on Oct 1 2021 so I upgraded: https://www.reactnative.dev/blog/2021/10/01/version-066

npx react-native upgrade

https://reactnative.dev/docs/upgrading

I got all sorts of warnings and errors (what a surprise!! - that's sarcasm)

Anyhow I've restarted the app from scratch and the error has now disappeared.

(I'd make sure you have a backup (git/github) before upgrading perhaps)

Maybe this will help (and probably introduce a whole load of new issues :sigh )

Related