Skip to content

Stack navigator for React Navigation

License

Notifications You must be signed in to change notification settings

mppperez/stack

This branch is up to date with react-navigation/stack:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3389391 · Feb 24, 2020
Jan 1, 2020
Jan 11, 2020
Feb 5, 2020
Feb 5, 2020
Feb 3, 2020
Jan 2, 2020
Aug 3, 2018
Dec 14, 2019
Sep 9, 2019
Dec 14, 2019
May 4, 2019
Aug 3, 2018
Feb 24, 2020
Oct 5, 2019
Oct 5, 2019
Jan 1, 2020
Feb 5, 2020
Feb 5, 2020
Feb 5, 2020

Repository files navigation

This package has been moved to https://github.com/react-navigation/react-navigation/tree/master/packages/stack


React Navigation Stack

Build Status Version MIT License

Stack navigator for use on iOS and Android.

Installation

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

yarn add react-navigation-stack @react-native-community/masked-view react-native-safe-area-context

or

npm install react-navigation-stack @react-native-community/masked-view react-native-safe-area-context

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

The code in this repo uses the source from @react-navigation/stack and patches it to make it usable in React Navigation 4. If you need to make changes, please send a pull request there.

If the change is specifically related to React Navigation 4 integration, first run yarn sync, then change the files in src/vendor and then run yarn patch to update the patch file with the latest changes.

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.

About

Stack navigator for React Navigation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 96.6%
  • JavaScript 3.0%
  • Shell 0.4%