It is likely just adjusting to the new water, tank, diet, etc. It may take a day or even a week or longer.
If not it, then you need to post your ammonia and nitrite test results by a liquid test.
Also, bright lights, bullying, insufficient dissolved oxygen, unstable pH, too low carbonate hardness are some of the usual sources of stress, which would affect any fish' appetite.