mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-07 22:43:48 +08:00
React Navigation Stack
Stack navigator for use on iOS and Android.
Installation
Open a Terminal in your project's folder and run,
yarn add react-navigation-stack
Usage
import { createStackNavigator } from 'react-navigation-stack';
export default createStackNavigator({
Inbox: InboxScreen
Drafts: DraftsScreen,
}, {
initialRouteName: 'Inbox',
});
Development workflow
- Clone this repository
- Run
yarnin the root directory and in theexampledirectory - Run
yarn devin the root directory - Run
yarn startin theexampledirectory
Docs
Documentation can be found on the React Navigation website.