WeWork Cos. on Monday said its loss last year doubled to nearly $2 billion, as the nine-year-old company spent heavily in an effort to rapidly expand its network of shared offices around the world.

The New York-based company’s revenue more than doubled to $1.82 billion, mostly from leasing office space. But heavy expansion costs led to a loss of $1.93 billion.

WeWork...