mattermost-mobile/share_extension/android/navigation.js
Jesse Hallam 58b72302d6 update eslint's comma-dangle rule to always-multiline (#1457)
* update eslint's `comma-dangle` rule to `always-multiline`

* add check and fix scripts to package.json

* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00

41 lines
1.1 KiB
JavaScript

// // Copyright (c) 2018-present Mattermost, Inc. All Rights Reserved.
// // See License.txt for license information.
import {StackNavigator as stackNavigator} from 'react-navigation';
import {Preferences} from 'mattermost-redux/constants';
import ExtensionChannels from './extension_channels';
import ExtensionPost from './extension_post';
import ExtensionTeams from './extension_teams';
const theme = Preferences.THEMES.default;
const Navigation = stackNavigator({
Post: {
screen: ExtensionPost,
},
Teams: {
screen: ExtensionTeams,
},
Channels: {
screen: ExtensionChannels,
},
}, {
navigationOptions: {
headerStyle: {
backgroundColor: theme.sidebarHeaderBg,
},
headerTitleStyle: {
marginHorizontal: 0,
left: 0,
color: theme.sidebarHeaderTextColor,
},
headerBackTitleStyle: {
color: theme.sidebarHeaderTextColor,
margin: 0,
},
headerTintColor: theme.sidebarHeaderTextColor,
},
});
export default Navigation;