React Navigation
ELI5 — The Vibe Check
React Navigation handles all the screen-to-screen transitions in your React Native app — stack navigation, tab bars, drawers, the works. It's the GPS of your mobile app, making sure users can get where they're going without getting lost.
Real Talk
The most popular navigation library for React Native, providing stack, tab, drawer, and native navigation patterns. React Navigation handles screen transitions, deep linking, URL integration, and type-safe navigation with TypeScript. It uses a declarative API with composable navigators.
Show Me The Code
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
const Stack = createNativeStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Details" component={DetailsScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
When You'll Hear This
"We use React Navigation with typed routes so navigating to wrong screens is a compile error." / "Nest a tab navigator inside a stack navigator for the typical app layout."
Related Terms
Deep Linking
Deep linking is when a URL opens a specific screen inside your app instead of just the home page.
Expo Router
Expo Router brings file-based routing to React Native — just like Next.js does for web. Create a file, get a route.
React Native
React Native lets you build iPhone and Android apps using React and JavaScript. It's like React put on a disguise and snuck into the App Store.