Once you get H1 approved, your OPT(F1) is invalid. You need to file H1 transfer before you work for the other company.