Hello. I am getting this error when launching a React Native application. Here is the screenshot:
The error here is because of userAgent being equal to "chrome", therefore the exec function on a regex returns null.
I'm running React Native v.0.64.0, React 17.0.1 on macOS Catalina 10.15.6. I also enabled Hermes on iOS.
What is the correct way to handle this issue?
I should say that dismissing this error in development allows to continue using the application, but I'm afraid I this issue can have hidden consequences.
Hello. I am getting this error when launching a React Native application. Here is the screenshot:
The error here is because of userAgent being equal to "chrome", therefore the exec function on a regex returns null. I'm running React Native v.0.64.0, React 17.0.1 on macOS Catalina 10.15.6. I also enabled Hermes on iOS. What is the correct way to handle this issue? I should say that dismissing this error in development allows to continue using the application, but I'm afraid I this issue can have hidden consequences.