Finally, the changes come to Gmail swipe actions. Now you can customize the swipe action and you can set your own action. You need to install the latest version of Gmail app on your phone (8.5.20 version) to enable swipe actions.
How to customize swipe-actions
Once you open the Gmail app go to Setting > General Setting > Swipe action. From there you can choose the action that you want. The available options are Archive, Delete, Mark as read/unread, Move to, Snooze, and None.
Today only we have received the update from play store and you can also update the apps from google play store.