I am developing a react native app, I am trying to clear setinterval function by backhandler event. It works correctly on android phone, but there is no back button in iphone, so I can't stop setinteval function. How can I detect swipe back handler?

[![This is the behavior](https://i.stack.imgur.com/yyHoS.png)](https://i.stack.imgur.com/yyHoS.png)