A Warning About React Version 17 Code in React 18

Please provide the following:

  1. SDK Version: 46
  2. Platforms(Android/iOS/web/all): web
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

THE WARNING BELOW SHOWS UP IN CONSOLE OF CHROME DEVELOPER TOOLS:
“Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it’s running React 17. Learn more: https://reactjs.org/link/switch-to-createroot

Hi @dannyogbuagu

It looks like this is an issue with react-native-web.

It is safe to ignore the warning, if you can stand to :slight_smile:
Otherwise you could possibly try one of the workarounds in the comments on the above issue.

2 Likes

Thanks, Wodin. My problem solved.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.