I have a sound player app and I want it to stop playing current song when user presses home screen button in android, actually sound is playing when pressing the home screen.
I use the componentWillUnmount for back button but for home screen button I don't know what should I use?