President Donald Trump announced that the US and China have reached a deal allowing TikTok to continue operating, with a new buyer set to be revealed soon.