I think you’ve got it backward. The likelihood is that the Obama administration treated China more like an ally and less as a hostile power than Trump has treated them.
Obama spent a lot of political and reputational capital on the TPP. The only purpose of TPP was to counteract China. I think it would be very surprising if they were treating China as an ally.