React-native-navigation: [v2] Clicking on notif create new react instance on top of previous one

Created on 29 Oct 2018  路  2Comments  路  Source: wix/react-native-navigation

Issue Description

when user clicks on a notification, a new react instance is added on top of the previous one, if the app is playing a song, the song is played as many time as there are react instances, and the backpress remove instance by instance

Steps to Reproduce / Code Snippets / Screenshots

a project to clone to reproduce the bug:
[email protected]:ogostus/RNNIssueReproduction.git


Environment

  • React Native Navigation version: ^2.0.2631
  • React Native version: 0.55.3
  • Platform(s) (iOS, Android, or both?): Android

Most helpful comment

Can you try adding this to your android/app/src/main/AndroidManifest.xml to ensure its not configuration problem?

<activity
        android:name=".MainActivity"
        ...
        android:launchMode="singleTop"

All 2 comments

Can you try adding this to your android/app/src/main/AndroidManifest.xml to ensure its not configuration problem?

<activity
        android:name=".MainActivity"
        ...
        android:launchMode="singleTop"

Can you try adding this to your android/app/src/main/AndroidManifest.xml to ensure its not configuration problem?

<activity
        android:name=".MainActivity"
        ...
        android:launchMode="singleTop"

it worked ! thank you @quarryman

Was this page helpful?
0 / 5 - 0 ratings