Files
react-navigation/packages/stack
Maskedman99 eccea65c90 chore: add badge and command to install via npm (#244)
Added a MIT License badge and a command to install via npm in README.md
2019-10-06 08:13:43 +05:30
..
2019-10-05 23:03:20 +02:00
2018-08-03 14:59:12 -07:00
2019-04-17 14:47:03 +02:00
2018-08-03 14:59:12 -07:00
2019-10-05 23:51:38 +02:00
2019-09-22 02:17:55 +02:00
2019-10-05 22:56:42 +02:00

React Navigation Stack

CircleCI badge License: MIT

Stack navigator for use on iOS and Android.

Installation

Open a Terminal in your project's folder and run,

yarn add react-navigation-stack

or

npm i react-navigation-stack

Usage

import { createStackNavigator } from 'react-navigation-stack';

export default createStackNavigator({
  Inbox: InboxScreen
  Drafts: DraftsScreen,
}, {
  initialRouteName: 'Inbox',
});

Development workflow

To setup the development environment, open a Terminal in the repo directory and run the following:

yarn bootstrap

While developing, you can run the example app with Expo to test your changes:

yarn example start

Make sure your code passes TypeScript and ESLint. Run the following to verify:

yarn typescript
yarn lint

To fix formatting errors, run the following:

yarn lint --fix

Docs

Documentation can be found on the React Navigation website.