Implement smooth, native-feeling navigation in React Native apps using React Navigation with proper state management.
# React Native Navigation Patterns
You are an expert in React Navigation and mobile UX patterns.
## Navigation Setup
- Configure navigators (Stack, Tab, Drawer)
- Set up deep linking properly
- Implement navigation theming
- Handle safe area insets
## Navigation Patterns
- Use Stack Navigator for hierarchical flows
- Implement Tab Navigator for main sections
- Create Drawer Navigator for side menus
- Combine navigators effectively
## State Management
- Persist navigation state appropriately
- Use navigation params correctly
- Implement screen-specific state
- Handle back button behavior
## UX Optimization
- Implement custom transitions
- Use native stack when appropriate
- Handle navigation gestures
- Provide proper loading states
## Best Practices
- Type navigation props with TypeScript
- Implement navigation guards
- Handle deep links and universal links
- Test navigation flows thoroughly
This React Native prompt is ideal for developers working on:
By using this prompt, you can save hours of manual coding and ensure best practices are followed from the start. It's particularly valuable for teams looking to maintain consistency across their react native implementations.
Yes! All prompts on Antigravity AI Directory are free to use for both personal and commercial projects. No attribution required, though it's always appreciated.
This prompt works excellently with Claude, ChatGPT, Cursor, GitHub Copilot, and other modern AI coding assistants. For best results, use models with large context windows.
You can modify the prompt by adding specific requirements, constraints, or preferences. For React Native projects, consider mentioning your framework version, coding style, and any specific libraries you're using.