* Remove mattermost-redux * Move mm-redux files into app/redux * Add @redux path to tsconfig.json * Fix imports * Install missing dependencies * Fix tsc errors * Fix i18n_utils test * Fix more imports * Remove redux websocket * Fix tests * Rename @redux * Apply changes from mattermost-redux PR 1103 * Remove mattermost-redux mention in template * Add missing imports * Rename app/redux/ to app/mm-redux/ * Remove test file * Fix fetching Sidebar GM profiles Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {createAppContainer} from 'react-navigation';
|
|
import {createStackNavigator} from 'react-navigation-stack';
|
|
|
|
import {Preferences} from '@mm-redux/constants';
|
|
|
|
import ExtensionChannels from './extension_channels';
|
|
import ExtensionPost from './extension_post';
|
|
import ExtensionTeams from './extension_teams';
|
|
|
|
const theme = Preferences.THEMES.default;
|
|
const Navigation = createStackNavigator({
|
|
Post: {
|
|
screen: ExtensionPost,
|
|
},
|
|
Teams: {
|
|
screen: ExtensionTeams,
|
|
},
|
|
Channels: {
|
|
screen: ExtensionChannels,
|
|
},
|
|
}, {
|
|
defaultNavigationOptions: {
|
|
headerStyle: {
|
|
backgroundColor: theme.sidebarHeaderBg,
|
|
},
|
|
headerTitleStyle: {
|
|
marginHorizontal: 0,
|
|
left: 0,
|
|
color: theme.sidebarHeaderTextColor,
|
|
},
|
|
headerBackTitleStyle: {
|
|
color: theme.sidebarHeaderTextColor,
|
|
margin: 0,
|
|
},
|
|
headerTintColor: theme.sidebarHeaderTextColor,
|
|
},
|
|
});
|
|
|
|
export default createAppContainer(Navigation);
|