In my recent project, I created a brand new React-native project, and run that on the simulator, then the captioned error pops up:
“No dimensions set for key window”
What hell does this mean? After a quick search on the internet, we found the solution: it turns out that the terminal (Mac) or the command line window is running for quite some time, and for unknown reasons, some of the information is outdated, which results in the captioned errors.
So the solution is simple:
- Turn off all the terminal instances, restart the terminal/command line window,
- Re-run the command: react-native run-ios
That is it! Happy coding!