Gif animation work just once

hi everyone
i have app where i am showing a gif img, the problem that when it shows the gif first time the animation played one when i go to another pages then back to the page the have the gif it doesn’t animate again how i can fix that