Skip to content

docs: Fix missing NavigationContainer imports in multiple drawers examples - #1526

Open
developerdanx wants to merge 1 commit into
react-navigation:mainfrom
developerdanx:fix/multiple-drawers-imports
Open

developerdanx wants to merge 1 commit into
react-navigation:mainfrom
developerdanx:fix/multiple-drawers-imports

Conversation

@developerdanx

Copy link
Copy Markdown

Summary

The first two multiple-drawers examples in the 6.x documentation render NavigationContainer without importing it. Copying either example results in an undefined component.

Add the missing import from @react-navigation/native to both examples. The other two examples already import it; 7.x and 8.x use the static navigation API and need no changes.

Fixes #1292

Validation

  • Confirmed before editing that exactly the first two examples were missing the import.
  • Passed a targeted automated check that all four 6.x examples using NavigationContainer import it from @react-navigation/native.
  • Verified the complete file differs from the base only by the two added import lines, with Markdown fences preserved.
  • Passed git diff --check and reverse applicability check of the exported patch.
  • No dependencies installed. Full Markdown lint, website build, typecheck and browser/Snack execution were not run.

@netlify

netlify Bot commented Oct 30, 2026

Copy link
Copy Markdown

✅ Deploy Preview for react-navigation-docs ready!

Name Link
🔨 Latest commit f10bef6
🔍 Latest deploy log https://app.netlify.com/projects/react-navigation-docs/deploys/6ae47dbe4c32d6e59cfee6f9
😎 Deploy Preview https://deploy-preview-1526--react-navigation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

Missing import on multiple-drawers

1 participant