New York (CNN Business) RH, the company formerly known as Restoration Hardware, says it has a plan to avoid losing money during the US-China trade war: Boost prices, renegotiate with suppliers and make furniture outside of China.

The company said its strategy is paying off: The high-end home retailer company reported late Wednesday that it brought in $598 million in revenue last quarter, which was above analysts' expectations. It also lifted its full-year guidance for the rest of 2019.

RH's RH stock soared 27% in premarket trading.

In its earnings report, RH said it has "renegotiated product costs and selectively raised prices to mitigate the impact" of the increased tariffs on $250 billion worth of Chinese goods imported to the United States. The Trump administration raised those tariffs to 25% from 10% in May.

RH also said it's shifting some product development and manufacturing out of China and will consider expanding manufacturing facilities in the United States. The company also said it is looking into building new partnerships that could help it ease the tariff burden.

Read More