mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-25 04:55:30 +08:00
Initial commit
This commit is contained in:
30
packages/stack/README.md
Normal file
30
packages/stack/README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# React Navigation Stack
|
||||
|
||||
[](https://circleci.com/gh/react-navigation/react-navigation-stack/tree/master)
|
||||
|
||||
Stack navigator for use on iOS and Android.
|
||||
|
||||
## Installation
|
||||
|
||||
Open a Terminal in your project's folder and run,
|
||||
|
||||
```sh
|
||||
yarn add react-navigation-stack
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import { createStackNavigator } from 'react-navigation-stack';
|
||||
|
||||
export default createStackNavigator({
|
||||
Inbox: InboxScreen
|
||||
Drafts: DraftsScreen,
|
||||
}, {
|
||||
initialRouteName: 'Inbox',
|
||||
});
|
||||
```
|
||||
|
||||
## Docs
|
||||
|
||||
Documentation can be found on the [React Navigation website](https://reactnavigation.org/docs/en/stack-navigator.html).
|
||||
Reference in New Issue
Block a user