I want to show a modal containing the notification data when the app is running(foreground).
In my RootNavigator
i have a method attached to the Notification Subscription
which sets the state of the hasNotification
then i render based on the state of the hasNotification
state.
render() {
return this.state.hasNotification ? (
this._displayModalForNotification()
) : (
<AppNavigator />
);
}
However, this redirects the user to the RootScreen after receiving the notification.
What am i doing wrong.