Files
react-navigation/packages/compat
satyajit.happy aa40130266 chore: publish
- @react-navigation/bottom-tabs@5.0.0-alpha.16
 - @react-navigation/compat@5.0.0-alpha.10
 - @react-navigation/core@5.0.0-alpha.18
 - @react-navigation/drawer@5.0.0-alpha.17
 - @react-navigation/example@5.0.0-alpha.17
 - @react-navigation/material-bottom-tabs@5.0.0-alpha.16
 - @react-navigation/material-top-tabs@5.0.0-alpha.13
 - @react-navigation/native-stack@5.0.0-alpha.5
 - @react-navigation/routers@5.0.0-alpha.10
 - @react-navigation/stack@5.0.0-alpha.30
2019-10-29 21:20:18 +01:00
..
2019-10-22 00:53:11 +02:00
2019-10-29 21:20:18 +01:00
2019-10-29 21:20:18 +01:00
2019-09-16 15:16:28 +02:00
2019-09-16 15:16:28 +02:00

@react-navigation/compat

Compatibility layer to write navigator definitions in static configuration format.

Installation

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

yarn add @react-navigation/core @react-navigation/compat

Usage

import { createCompatNavigatorFactory } from '@react-navigation/compat';
import { createStackNavigator } from '@react-navigation/stack';

const RootStack = createCompatNavigatorFactory(createStackNavigator)(
  {
    Home: { screen: HomeScreen },
    Profile: { screen: ProfileScreen },
  },
  {
    initialRouteName: 'Profile',
  }
);