mirror of
https://github.com/status-im/react-native.git
synced 2025-01-22 07:20:23 +00:00
26 lines
594 B
JavaScript
26 lines
594 B
JavaScript
|
/**
|
||
|
* This is an example React Native app demonstrates ListViews, text input and
|
||
|
* navigation between a few screens.
|
||
|
* https://github.com/facebook/react-native
|
||
|
*/
|
||
|
|
||
|
import React, { Component } from 'react';
|
||
|
import { StackNavigator } from 'react-navigation';
|
||
|
|
||
|
import HomeScreenTabNavigator from './HomeScreenTabNavigator';
|
||
|
import ChatScreen from './chat/ChatScreen';
|
||
|
|
||
|
/**
|
||
|
* Top-level navigator. Renders the application UI.
|
||
|
*/
|
||
|
const MainNavigator = StackNavigator({
|
||
|
Home: {
|
||
|
screen: HomeScreenTabNavigator,
|
||
|
},
|
||
|
Chat: {
|
||
|
screen: ChatScreen,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
export default MainNavigator;
|