--- id: navigation title: Navigation layout: docs category: Guides permalink: docs/navigation.html next: images previous: animations --- This guide covers the various navigation components available in React Native. If you are just getting started with navigation, you will probably want to use React Navigation. If you are only targeting iOS and would like to stick to the native look and feel, check out `NavigatorIOS`. The `Navigator` component is older but has been thoroughly tested in production. ## React Navigation The community solution to navigation is a standalone library that allows developers to set up the screens of an app with just a few lines of code. The first step is to install in your app: ``` npm install --save react-navigation ``` Then you can quickly create an app with a home screen and a profile screen: ``` import { StackNavigator, } from 'react-navigation'; const App = StackNavigator({ Main: {screen: MainScreen}, Profile: {screen: ProfileScreen}, }); ``` Each screen component can set navigation options such as the header title. It can use action creators on the `navigation` prop to link to other screens: ``` class MainScreen extends React.Component { static navigationOptions = { title: 'Welcome', }; render() { const { navigate } = this.props.navigation; return (