i have an app build in react native using expo. i would like to check the state of the app when receiving a notification. For example, if app is active show an alert that gives