mirror of
https://github.com/status-im/react-navigation-stack.git
synced 2025-01-15 00:54:12 +00:00
Eric Vicenti
8be65b0ff4
Add explicit main file for react-native
Metro will compile all source files, so we should avoid using dist to support source maps in people's apps. This key provides an explicit reference for metro to follow for react native, while keeping the main entry point for potential web consumption.
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',
});
Docs
Documentation can be found on the React Navigation website.
Description
Languages
JavaScript
100%