Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

messaging app (SampleApp) navigation.goBack not defined when creating a new group #1506

Open
Agupta00 opened this issue Jun 21, 2022 · 2 comments
Labels
Good First Issue Good for newcomers SA Bug Bug in Sample Apps

Comments

@Agupta00
Copy link

Hello, Please see the attached video below of the bug I described.

The problem is when you go "New Group" -> "Name the Group" -> "Back Button", you get an error since navigation.goBack(); in ScreenHeader.tsx does not have anything to go back to.

The expected behavior would be that it does / when you are back on the home screen you should be able to navigate to other chats, which you are not able to do.

If there is a quick fix, please do let me know, thanks!
As a quick hack, I have tried to add this but it didn't work.

        if (!navigation.canGoBack()) {
          navigation.reset({
            index: 0,
            routes: [
              {
                name: 'HomeScreen',
              },
            ],
          });
        } else {
          navigation.goBack();
        }

Error: ERROR The action 'GO_BACK' was not handled by any navigator.

Screen.Recording.2022-06-21.at.4.38.47.PM.mov
@vanGalilea vanGalilea added the Good First Issue Good for newcomers label Jun 22, 2022
@vanGalilea vanGalilea added the Bug Something isn't working in the SDK label Oct 13, 2022
@vanGalilea
Copy link
Contributor

@Agupta00 thanks for reaching out. We have added this to our low-prio backlog. Follow this issue to stay posted!

@vanGalilea vanGalilea added SA Bug Bug in Sample Apps and removed Bug Something isn't working in the SDK labels Mar 8, 2023
@Vrunalbenke
Copy link

/attempt #1506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Good for newcomers SA Bug Bug in Sample Apps
Projects
None yet
Development

No branches or pull requests

4 participants