These five packages form the core infrastructure for building fluid, native-feeling mobile applications with React Native. react-navigation and react-native-navigation provide the routing logic to move between views, while react-native-screens, react-native-gesture-handler, and react-native-reanimated optimize performance by offloading work to native threads. Together, they enable developers to create complex gestures, 60fps animations, and memory-efficient screen stacks that match the quality of fully native apps.
Building a production-grade React Native app requires more than just standard components. You need a robust navigation system and performance primitives that bypass the JavaScript bridge for critical interactions. The five packages in this comparison — react-navigation, react-native-navigation, react-native-screens, react-native-gesture-handler, and react-native-reanimated — work together to solve these challenges. Let's examine how they function individually and how they integrate into a cohesive architecture.
The biggest architectural decision is choosing between the two main navigation libraries. They handle screen stacks differently, which impacts how you configure your app.
react-navigation uses a JavaScript-based router that renders components within a single native root view. It is highly customizable and uses a declarative configuration.
// react-navigation: Stack Navigator Configuration
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>
);
}
react-native-navigation bypasses the React root view and pushes native view controllers directly. It requires registering screens globally before use.
// react-native-navigation: Screen Registration & Push
import { Navigation } from 'react-native-navigation';
Navigation.registerComponent('HomeScreen', () => HomeScreen);
Navigation.registerComponent('DetailsScreen', () => DetailsScreen);
Navigation.push('ComponentId', {
component: {
name: 'DetailsScreen',
options: {
topBar: { title: { text: 'Details' } }
}
}
});
When dealing with deep navigation stacks, keeping every screen mounted in memory can crash your app. react-native-screens solves this by attaching screens to native containers.
react-native-screens allows you to enable native primitives that detach inactive screens from the window hierarchy.
// react-native-screens: Enabling Native Screens
import { enableScreens } from 'react-native-screens';
enableScreens(); // Call before rendering app
// Usage within a container
import { ScreenContainer, Screen } from 'react-native-screens';
<ScreenContainer>
<Screen active={isActive}>
<HomeScreen />
</Screen>
</ScreenContainer>
react-navigation integrates this automatically when using createNativeStackNavigator, but you must ensure enableScreens() is called at entry.
// react-navigation: Integrating Screens
import { enableScreens } from 'react-native-screens';
enableScreens();
// The Native Stack uses screens internally
const Stack = createNativeStackNavigator();
react-native-navigation handles native controllers inherently, so it does not rely on react-native-screens for its core stack behavior, but you can still use screens for modal presentations within its ecosystem.
// react-native-navigation: Native Stack (Built-in)
// No explicit 'screens' package needed for core push/pop
Navigation.push('ComponentId', { component: { name: 'Screen' } });
Standard React Native touch events travel over the bridge, causing lag. react-native-gesture-handler moves this logic to the UI thread.
react-native-gesture-handler provides native wrappers for touch events. It requires wrapping your app root.
// react-native-gesture-handler: Root Wrapper & Pan Gesture
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { PanGestureHandler } from 'react-native-gesture-handler';
export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<PanGestureHandler onGestureEvent={onGesture}>
<View style={{ width: 100, height: 100, background: 'red' }} />
</PanGestureHandler>
</GestureHandlerRootView>
);
}
react-navigation depends on this library for swipe gestures in drawers and tabs. Without it, these features fall back to slower JS implementations.
// react-navigation: Drawer Navigation (Requires Gesture Handler)
import { createDrawerNavigator } from '@react-navigation/drawer';
const Drawer = createDrawerNavigator();
// Swipe to open works smoothly only with gesture-handler installed
react-native-navigation also utilizes gesture handler for edge swipes and interactive pop gestures, ensuring consistency with native OS behavior.
// react-native-navigation: Enabling Gestures
Navigation.setDefaultOptions({
sideMenu: {
left: { enabled: true } // Uses native gestures
}
});
For complex animations, react-native-reanimated allows you to run JavaScript code on the UI thread using worklets.
react-native-reanimated uses useSharedValue and useAnimatedStyle to bypass the bridge entirely during animation frames.
// react-native-reanimated: UI Thread Animation
import { useSharedValue, useAnimatedStyle, withSpring } from 'react-native-reanimated';
function Box() {
const offset = useSharedValue(0);
const style = useAnimatedStyle(() => {
return { transform: [{ translateY: offset.value }] };
});
return <Animated.View style={style} />;
}
react-navigation uses Reanimated internally for its transition animations when configured, ensuring smooth handovers between screens.
// react-navigation: Custom Transition with Reanimated
<Stack.Screen
name="Details"
options={{
transitionSpec: {
open: { animation: 'spring', config: { stiffness: 1000 } }
}
}}
/>
react-native-navigation supports shared element transitions that can be enhanced with Reanimated for custom physics, though it has its own native animation drivers as well.
// react-native-navigation: Shared Element Transition
Navigation.push('ComponentId', {
component: { name: 'Details' },
animations: {
sharedElementTransitions: [/* config */]
}
});
For most teams, the recommended architecture combines react-navigation with the performance trio (screens, gesture-handler, reanimated). This offers the best balance of DX and performance.
// Integrated Stack Example
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { enableScreens } from 'react-native-screens';
import { NavigationContainer } from '@react-navigation/native';
enableScreens();
export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<NavigationContainer>
{/* Navigators go here */}
</NavigationContainer>
</GestureHandlerRootView>
);
}
If you choose react-native-navigation, the setup is slightly different as it manages its own root, but you still wrap content with GestureHandlerRootView for custom gestures.
// Wix Navigation Setup Example
import { Navigation } from 'react-native-navigation';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
Navigation.events().registerAppLaunchedListener(() => {
Navigation.setRoot({
root: {
component: {
name: 'HomeScreen',
options: { topBar: { visible: true } }
}
}
});
});
| Feature | react-navigation | react-native-navigation | react-native-screens | react-native-gesture-handler | react-native-reanimated |
|---|---|---|---|---|---|
| Primary Role | JS-based Routing | Native Routing | Native Containers | Native Touch | UI Thread Animations |
| Root View | Single React Root | Multiple Native Views | Wrapper Component | Wrapper Component | Hook-based |
| Dependency | Standalone | Standalone | Infra Dependency | Infra Dependency | Infra Dependency |
| Code Location | JS Config | Global Registry | enableScreens() | GestureHandlerRootView | worklet functions |
| Best For | Flexibility & DX | Pure Native Feel | Memory Optimization | Complex Gestures | 60fps Animations |
For 90% of projects, start with react-navigation paired with react-native-screens, react-native-gesture-handler, and react-native-reanimated. This combination gives you the massive community support of React Navigation while ensuring your app feels native through the performance libraries.
Reserve react-native-navigation for cases where you have specific native requirements that the single-root architecture cannot satisfy, or if you are migrating an existing Wix ecosystem app. Regardless of the navigator, always include gesture-handler and reanimated for any app that values polish and responsiveness.
Choose react-native-navigation if you require fully native navigation controllers for maximum performance and a strict native look and feel. Maintained by Wix, it renders native views directly rather than wrapping them in a single React root, which can reduce memory overhead in very large apps. It is ideal for teams comfortable with native iOS/Android concepts and static screen registration.
Choose react-native-gesture-handler when your app requires complex touch interactions like swipes, pinch-to-zoom, or draggable elements that must run on the UI thread. It is essential for enabling smooth drawer menus and tab swipes in react-navigation. Without it, gesture recognition may lag or conflict with the JavaScript thread.
Choose react-native-reanimated when you need to run animation logic on the UI thread to guarantee 60fps performance, independent of the JavaScript bridge. It is the go-to library for shared element transitions, complex physics-based animations, and gesture-driven UI changes. Use it whenever standard React Animated API causes frame drops.
Choose react-native-screens to optimize memory usage and transition performance by leveraging native screen containers like UINavigationController. It is now a default dependency for react-navigation native stacks and should be enabled in almost every production React Native app. It prevents inactive screens from consuming resources while keeping them ready for quick access.
Choose react-navigation if you want a community-driven, JavaScript-based routing solution that is highly flexible and easy to configure. It is the standard choice for most React Native projects, offering deep integration with react-native-screens and a vast ecosystem of plugins. It works best when you need custom navigators or frequent updates to the navigation structure.

React Native Navigation provides 100% native platform navigation on both iOS and Android for React Native apps. The JavaScript API is simple and cross-platform - just install it in your app and give your users the native feel they deserve. Ready to get started? Check out the docs.
Apps using React Native Navigation may target iOS 11 and Android 5.0 (API 21). You may use Windows, macOS or Linux as your development operating system.
As react-native-navigation is a native navigation library - integrating it into your app will require editing native files. Follow the installation guides in the documentation.