--- 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](docs/navigation.html#react-navigation). If you are only targeting iOS and would like to stick to the native look and feel, check out [NavigatorIOS](docs/navigation.html#navigatorios). If you're targeting both iOS and Android, the following libraries provide native navigation on both platforms: [native-navigation](http://airbnb.io/native-navigation/), [react-native-navigation](https://github.com/wix/react-native-navigation). ## 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 project: ``` 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({ Home: { screen: HomeScreen }, 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 HomeScreen extends React.Component { static navigationOptions = { title: 'Welcome', }; render() { const { navigate } = this.props.navigation; return (