SDK 40 react-native-screens warning if using react-navigation v4

🐛 Bug Report

Summary of Issue

After updating SDK the following warning was shown for apps that are still using react-navigation version 4.

I suspect if I downgrade react-native-screens it will work but that shouldn’t be the best thing, in my opinion. To upgrade to version 5 would be insane in a project this size. What should be done in this case?

EDIT
Tried to revert to my previous version 2.10.1, and it shows a blank white screen.

1 possible answer(s) on “SDK 40 react-native-screens warning if using react-navigation v4

  1. Something that worked was the removal of the following code from App.js:

    import { enableScreens } from 'react-native-screens';
    enableScreens();