How come swipe to refresh works in preview app but not in build?

Do we have to do anything to enable swipe to refresh? It always works in the previewer app but not in the android build.