Changing Screen Name Realtime

Hi , Is there any possible way to change the name of the screen in stack navigator runtime.
I Know there is a block called set stacknavigatoroptions but dont know how to use it
Thanks in advance