Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No dimensions set for key window

Tags:

react-native

I am having some issues with react native. It keeps giving me the following error.

error

What could be causing this?

like image 394
Adeojo Emmanuel IMM Avatar asked May 06 '17 21:05

Adeojo Emmanuel IMM


6 Answers

Try closing terminal, deleting ios/build and run again. I had the same issue but now its working.

like image 99
Moe Mamdouh Avatar answered Nov 04 '22 16:11

Moe Mamdouh


For anyone that runs into this. Check to confirm the window passed to get() is a string Dimensions.get('window') .

like image 33
haxkalibrr Avatar answered Nov 04 '22 15:11

haxkalibrr


There apparently is an issue with react-router-flux since a few days.

You probably need to rollback to the 3.38.0 version before the bug was introduced.

yarn add [email protected]

If it doesn't work, some people also said that you might need to close all your terminals, delete your build folder and clear your npm cache.

like image 36
Preview Avatar answered Nov 04 '22 14:11

Preview


I got this error when I ran a different react-native project, but had forgotten to close the terminal window that was running the React Packager. Once I closed the React Packager terminal window and re-ran react-native run-android the error went away.

like image 41
Evan Siroky Avatar answered Nov 04 '22 14:11

Evan Siroky


Check if you have an old package manager running from a different project. If so, close it and run again.

like image 1
Vinay Avatar answered Nov 04 '22 14:11

Vinay


Close all terminal and after use following command in terminal npm cache clean

worked for me

like image 1
Vipul parmar Avatar answered Nov 04 '22 16:11

Vipul parmar