Getting swipe from left edge = back behavior?

Is there some way to get that behavior where swiping from the left edge goes back/up one level? Preferably something that’s not too “hacky.” Or would I have to go with React Native to achieve something like this?

I can see that there are several packages that implement this on Atmosphere. I’ve used Hammer.js successfully so far – though I have not put my app into production yet. I like it because I can specify based on a div which areas are swipe-able (or other actions like double tap) and actions for each.