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

Stack navigator for each tab code example warning #1230

Open
Illu opened this issue Apr 11, 2023 · 1 comment
Open

Stack navigator for each tab code example warning #1230

Illu opened this issue Apr 11, 2023 · 1 comment

Comments

@Illu
Copy link

Illu commented Apr 11, 2023

When running on a bare react-native project, the stack navigator for each tab code example triggers the following warning:

Found screens with the same name nested inside one another. Check:

Home, Home > Home

A similar warning is displayed when switching to the "Settings" tab.

Should the name prop of each Tab.Screen change to avoid this warning?

@SD191100
Copy link

I am a beginner in react-navigation as well but I think you should use unique names for your screens/tabs... try doing that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants