With metro=‘bundler’, output=‘static’, should window be undefined?
It would be nice to be able to use async-storage
with static web builds, unfortunately it returns window is undefined.
http://localhost:8081/.expo/static/render.bundle//&platform=web&dev=true&minify=false&resolver.environment=node&transform.environment=node:178050
return window.localStorage.getItem(key);
^
ReferenceError: window is not defined
Am I missing a babel or metro configuration?