Static Rendering - expo web metro bundler static output, window undefined

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.

return window.localStorage.getItem(key);
ReferenceError: window is not defined

Am I missing a babel or metro configuration?

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