diff --git a/app/components/radio_button/__snapshots__/radio_button_group.test.js.snap b/app/components/radio_button/__snapshots__/radio_button_group.test.js.snap
new file mode 100644
index 000000000..57e55cbc9
--- /dev/null
+++ b/app/components/radio_button/__snapshots__/radio_button_group.test.js.snap
@@ -0,0 +1,82 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`RadioButtonGroup should match snapshot 1`] = `
+
+
+
+
+`;
diff --git a/app/components/radio_button/radio_button.js b/app/components/radio_button/radio_button.js
index 9d4a8d532..4d350c568 100644
--- a/app/components/radio_button/radio_button.js
+++ b/app/components/radio_button/radio_button.js
@@ -15,6 +15,7 @@ const DEFAULT_OPACITY = 1;
class RadioButton extends PureComponent {
static propTypes = {
+ testID: PropTypes.string,
label: PropTypes.string,
theme: PropTypes.object,
value: PropTypes.string,
@@ -83,7 +84,7 @@ class RadioButton extends PureComponent {
render() {
const {scaleValue, opacityValue} = this.state;
- const {theme, checked, disabled} = this.props;
+ const {testID, theme, checked, disabled} = this.props;
const styles = getStyleSheet(theme);
const color = checked ? theme.buttonBg : theme.centerChannelColor;
@@ -91,6 +92,7 @@ class RadioButton extends PureComponent {
return (
diff --git a/app/components/radio_button/radio_button_group.js b/app/components/radio_button/radio_button_group.js
index 2c20e2d1e..1c421e18f 100644
--- a/app/components/radio_button/radio_button_group.js
+++ b/app/components/radio_button/radio_button_group.js
@@ -29,6 +29,7 @@ export default class RadioButtonGroup extends PureComponent {
if (this.props.options.length) {
options = this.props.options.map((option) => {
const {
+ testID,
value,
label,
disabled,
@@ -39,6 +40,7 @@ export default class RadioButtonGroup extends PureComponent {
return (
{
+ const baseProps = {
+ onSelect: jest.fn(),
+ name: 'name',
+ };
+
+ test('should match snapshot', () => {
+ const options = [{
+ testID: 'radio-1',
+ label: 'label-1',
+ theme: Preferences.THEMES.default,
+ value: 'value',
+ checked: true,
+ disabled: false,
+ }, {
+ testID: 'radio-2',
+ label: 'label-2',
+ theme: Preferences.THEMES.default,
+ value: 'value',
+ checked: false,
+ disabled: true,
+ }];
+
+ const wrapper = shallowWithIntl(
+ ,
+ );
+
+ expect(wrapper.getElement()).toMatchSnapshot();
+ });
+});
diff --git a/app/components/sidebars/settings/__snapshots__/drawer_item.test.js.snap b/app/components/sidebars/settings/__snapshots__/drawer_item.test.js.snap
new file mode 100644
index 000000000..910eab0da
--- /dev/null
+++ b/app/components/sidebars/settings/__snapshots__/drawer_item.test.js.snap
@@ -0,0 +1,94 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`DrawerItem should match snapshot 1`] = `
+
+
+
+
+
+
+
+
+
+
+
+
+
+`;
diff --git a/app/components/sidebars/settings/__snapshots__/settings_sidebar.test.js.snap b/app/components/sidebars/settings/__snapshots__/settings_sidebar.test.js.snap
new file mode 100644
index 000000000..e5b7bcd91
--- /dev/null
+++ b/app/components/sidebars/settings/__snapshots__/settings_sidebar.test.js.snap
@@ -0,0 +1,13 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`SettingsSidebar should match snapshot 1`] = `
+
+`;
diff --git a/app/components/sidebars/settings/drawer_item.js b/app/components/sidebars/settings/drawer_item.js
index 808d852d5..05f15e5cb 100644
--- a/app/components/sidebars/settings/drawer_item.js
+++ b/app/components/sidebars/settings/drawer_item.js
@@ -11,6 +11,7 @@ import {changeOpacity, makeStyleSheetFromTheme} from '@utils/theme';
export default class DrawerItem extends PureComponent {
static propTypes = {
+ testID: PropTypes.string,
centered: PropTypes.bool,
defaultMessage: PropTypes.string,
i18nId: PropTypes.string,
@@ -31,6 +32,7 @@ export default class DrawerItem extends PureComponent {
render() {
const {
+ testID,
centered,
defaultMessage,
i18nId,
@@ -81,6 +83,7 @@ export default class DrawerItem extends PureComponent {
return (
diff --git a/app/components/sidebars/settings/drawer_item.test.js b/app/components/sidebars/settings/drawer_item.test.js
new file mode 100644
index 000000000..db33ee794
--- /dev/null
+++ b/app/components/sidebars/settings/drawer_item.test.js
@@ -0,0 +1,31 @@
+// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
+// See LICENSE.txt for license information.
+
+import React from 'react';
+import {shallowWithIntl} from 'test/intl-test-helper';
+
+import Preferences from '@mm-redux/constants/preferences';
+
+import DrawerItem from './drawer_item';
+
+describe('DrawerItem', () => {
+ const baseProps = {
+ onPress: jest.fn(),
+ testID: 'test-id',
+ centered: true,
+ defaultMessage: 'default message',
+ i18nId: 'i18-id',
+ iconName: 'icon-name',
+ isDestructor: true,
+ separator: true,
+ theme: Preferences.THEMES.default,
+ };
+
+ test('should match snapshot', () => {
+ const wrapper = shallowWithIntl(
+ ,
+ );
+
+ expect(wrapper.getElement()).toMatchSnapshot();
+ });
+});
diff --git a/app/components/sidebars/settings/settings_sidebar.test.js b/app/components/sidebars/settings/settings_sidebar.test.js
new file mode 100644
index 000000000..4ed6cf465
--- /dev/null
+++ b/app/components/sidebars/settings/settings_sidebar.test.js
@@ -0,0 +1,31 @@
+// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
+// See LICENSE.txt for license information.
+
+import React from 'react';
+import {shallowWithIntl} from 'test/intl-test-helper';
+
+import Preferences from '@mm-redux/constants/preferences';
+
+import SettingsSidebar from './settings_sidebar.ios';
+
+describe('SettingsSidebar', () => {
+ const baseProps = {
+ actions: {
+ logout: jest.fn(),
+ setStatus: jest.fn(),
+ },
+ currentUser: {
+ id: 'user-id',
+ },
+ status: 'offline',
+ theme: Preferences.THEMES.default,
+ };
+
+ test('should match snapshot', () => {
+ const wrapper = shallowWithIntl(
+ ,
+ );
+
+ expect(wrapper.getElement()).toMatchSnapshot();
+ });
+});
diff --git a/app/components/sidebars/settings/settings_sidebar_base.js b/app/components/sidebars/settings/settings_sidebar_base.js
index 7bdd86326..4c33effe8 100644
--- a/app/components/sidebars/settings/settings_sidebar_base.js
+++ b/app/components/sidebars/settings/settings_sidebar_base.js
@@ -139,6 +139,7 @@ export default class SettingsSidebarBase extends PureComponent {
const options = {
topBar: {
leftButtons: [{
+ testID: 'close.settings.button',
id: 'close-settings',
icon: this.closeButton,
}],
@@ -188,7 +189,10 @@ export default class SettingsSidebarBase extends PureComponent {
const {currentUser, theme} = this.props;
return (
-
+
diff --git a/app/screens/channel/channel_base.js b/app/screens/channel/channel_base.js
index dab9ef319..9d40d9ea9 100644
--- a/app/screens/channel/channel_base.js
+++ b/app/screens/channel/channel_base.js
@@ -184,7 +184,7 @@ export default class ChannelBase extends PureComponent {
leftButtons: [{
id: 'close-info',
icon: source,
- testID: 'screen.channel_info.close',
+ testID: 'close.channel_info.button',
}],
},
};
diff --git a/app/screens/channel/channel_nav_bar/__snapshots__/channel_nav_bar.test.js.snap b/app/screens/channel/channel_nav_bar/__snapshots__/channel_nav_bar.test.js.snap
index d7b345368..75d520ff2 100644
--- a/app/screens/channel/channel_nav_bar/__snapshots__/channel_nav_bar.test.js.snap
+++ b/app/screens/channel/channel_nav_bar/__snapshots__/channel_nav_bar.test.js.snap
@@ -18,7 +18,7 @@ exports[`ChannelNavBar should match, full snapshot 1`] = `
]
}
>
-
@@ -57,7 +57,7 @@ exports[`ChannelNavBar should match, full snapshot 1`] = `
}
}
/>
-
diff --git a/app/screens/channel/channel_nav_bar/__snapshots__/settings_drawer_button.test.js.snap b/app/screens/channel/channel_nav_bar/__snapshots__/settings_sidebar_drawer_button.test.js.snap
similarity index 83%
rename from app/screens/channel/channel_nav_bar/__snapshots__/settings_drawer_button.test.js.snap
rename to app/screens/channel/channel_nav_bar/__snapshots__/settings_sidebar_drawer_button.test.js.snap
index 333fd3215..e4d002b4b 100644
--- a/app/screens/channel/channel_nav_bar/__snapshots__/settings_drawer_button.test.js.snap
+++ b/app/screens/channel/channel_nav_bar/__snapshots__/settings_sidebar_drawer_button.test.js.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`SettingDrawerButton should match, full snapshot 1`] = `
+exports[`SettingsSidebarDrawerButton should match, full snapshot 1`] = `
-
@@ -123,7 +123,7 @@ export default class ChannelNavBar extends PureComponent {
-
+
);
}
diff --git a/app/screens/channel/channel_nav_bar/channel_drawer_button/__snapshots__/channel_drawer_button.test.js.snap b/app/screens/channel/channel_nav_bar/main_sidebar_drawer_button/__snapshots__/main_sidebar_drawer_button.test.js.snap
similarity index 90%
rename from app/screens/channel/channel_nav_bar/channel_drawer_button/__snapshots__/channel_drawer_button.test.js.snap
rename to app/screens/channel/channel_nav_bar/main_sidebar_drawer_button/__snapshots__/main_sidebar_drawer_button.test.js.snap
index 40d39b371..1905433e6 100644
--- a/app/screens/channel/channel_nav_bar/channel_drawer_button/__snapshots__/channel_drawer_button.test.js.snap
+++ b/app/screens/channel/channel_nav_bar/main_sidebar_drawer_button/__snapshots__/main_sidebar_drawer_button.test.js.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`ChannelDrawerButton should match, full snapshot 1`] = `
+exports[`MainSidebarDrawerButton should match, full snapshot 1`] = `
`;
-exports[`ChannelDrawerButton should match, full snapshot 2`] = `
+exports[`MainSidebarDrawerButton should match, full snapshot 2`] = `
{icon}
diff --git a/app/screens/channel/channel_nav_bar/channel_drawer_button/channel_drawer_button.test.js b/app/screens/channel/channel_nav_bar/main_sidebar_drawer_button/main_sidebar_drawer_button.test.js
similarity index 89%
rename from app/screens/channel/channel_nav_bar/channel_drawer_button/channel_drawer_button.test.js
rename to app/screens/channel/channel_nav_bar/main_sidebar_drawer_button/main_sidebar_drawer_button.test.js
index 14254e2cc..6555ab4a7 100644
--- a/app/screens/channel/channel_nav_bar/channel_drawer_button/channel_drawer_button.test.js
+++ b/app/screens/channel/channel_nav_bar/main_sidebar_drawer_button/main_sidebar_drawer_button.test.js
@@ -10,7 +10,7 @@ import Badge from 'app/components/badge';
import PushNotification from 'app/push_notifications/push_notifications.ios';
import {shallowWithIntl} from 'test/intl-test-helper';
-import ChannelDrawerButton from './channel_drawer_button';
+import MainSidebarDrawerButton from './main_sidebar_drawer_button';
jest.mock('react-native-notifications', () => {
let badgesCount = 0;
@@ -37,7 +37,7 @@ jest.mock('react-native-notifications', () => {
};
});
-describe('ChannelDrawerButton', () => {
+describe('MainSidebarDrawerButton', () => {
const baseProps = {
openSidebar: jest.fn(),
badgeCount: 0,
@@ -49,7 +49,7 @@ describe('ChannelDrawerButton', () => {
test('should match, full snapshot', () => {
const wrapper = shallowWithIntl(
- ,
+ ,
);
// no badge to show
@@ -70,7 +70,7 @@ describe('ChannelDrawerButton', () => {
};
shallowWithIntl(
- ,
+ ,
);
expect(setApplicationIconBadgeNumber).not.toBeCalled();
NotificationsIOS.getBadgesCount((count) => expect(count).toBe(0));
@@ -84,7 +84,7 @@ describe('ChannelDrawerButton', () => {
};
shallowWithIntl(
- ,
+ ,
);
expect(setApplicationIconBadgeNumber).toHaveBeenCalledTimes(1);
NotificationsIOS.getBadgesCount((count) => expect(count).toBe(1));
@@ -98,7 +98,7 @@ describe('ChannelDrawerButton', () => {
};
const wrapper = shallowWithIntl(
- ,
+ ,
);
NotificationsIOS.getBadgesCount((count) => expect(count).toBe(0));
@@ -116,7 +116,7 @@ describe('ChannelDrawerButton', () => {
};
const wrapper = shallowWithIntl(
- ,
+ ,
);
wrapper.setProps({badgeCount: 2});
expect(setApplicationIconBadgeNumber).toHaveBeenCalledWith(2);
@@ -129,21 +129,21 @@ describe('ChannelDrawerButton', () => {
test('Should be accessible', () => {
const wrapper = shallowWithIntl(
- ,
+ ,
);
expect(wrapper.props().accessible).toBeTruthy();
});
test('Should have the correct accessibilityHint', () => {
const wrapper = shallowWithIntl(
- ,
+ ,
);
expect(wrapper.props().accessibilityHint).toEqual('Opens the channels and teams drawer');
});
test('Should have the correct accessibilityLabel', () => {
const wrapper = shallowWithIntl(
- ,
+ ,
);
expect(wrapper.props().accessibilityLabel).toEqual('Channels and teams');
});
diff --git a/app/screens/channel/channel_nav_bar/settings_drawer_button.js b/app/screens/channel/channel_nav_bar/settings_sidebar_drawer_button.js
similarity index 93%
rename from app/screens/channel/channel_nav_bar/settings_drawer_button.js
rename to app/screens/channel/channel_nav_bar/settings_sidebar_drawer_button.js
index 3cceb2815..1e4582a3d 100644
--- a/app/screens/channel/channel_nav_bar/settings_drawer_button.js
+++ b/app/screens/channel/channel_nav_bar/settings_sidebar_drawer_button.js
@@ -17,7 +17,7 @@ import {preventDoubleTap} from '@utils/tap';
import {makeStyleSheetFromTheme} from '@utils/theme';
import {t} from '@utils/i18n';
-export class SettingDrawerButton extends PureComponent {
+export class SettingsSidebarDrawerButton extends PureComponent {
static propTypes = {
openSidebar: PropTypes.func.isRequired,
theme: PropTypes.object,
@@ -70,7 +70,7 @@ export class SettingDrawerButton extends PureComponent {
accessibilityHint={accessibilityHint}
accessibilityLabel={accessibilityLabel}
accessibilityRole='button'
- testID='sidebar.settings.button'
+ testID='settings_sidebar_drawer.button'
onPress={this.handlePress}
style={style.container}
>
@@ -107,4 +107,4 @@ function mapStateToProps(state) {
};
}
-export default connect(mapStateToProps)(SettingDrawerButton);
+export default connect(mapStateToProps)(SettingsSidebarDrawerButton);
diff --git a/app/screens/channel/channel_nav_bar/settings_drawer_button.test.js b/app/screens/channel/channel_nav_bar/settings_sidebar_drawer_button.test.js
similarity index 75%
rename from app/screens/channel/channel_nav_bar/settings_drawer_button.test.js
rename to app/screens/channel/channel_nav_bar/settings_sidebar_drawer_button.test.js
index e0a1fca62..decbd0190 100644
--- a/app/screens/channel/channel_nav_bar/settings_drawer_button.test.js
+++ b/app/screens/channel/channel_nav_bar/settings_sidebar_drawer_button.test.js
@@ -4,11 +4,11 @@
import React from 'react';
import Preferences from '@mm-redux/constants/preferences';
-import {SettingDrawerButton} from './settings_drawer_button';
+import {SettingsSidebarDrawerButton} from './settings_sidebar_drawer_button';
import {shallowWithIntl} from 'test/intl-test-helper';
-describe('SettingDrawerButton', () => {
+describe('SettingsSidebarDrawerButton', () => {
const baseProps = {
openSidebar: jest.fn(),
theme: Preferences.THEMES.default,
@@ -16,28 +16,28 @@ describe('SettingDrawerButton', () => {
test('should match, full snapshot', () => {
const wrapper = shallowWithIntl(
- ,
+ ,
);
expect(wrapper).toMatchSnapshot();
});
test('Should be accessible', () => {
const wrapper = shallowWithIntl(
- ,
+ ,
);
expect(wrapper.props().accessible).toBeTruthy();
});
test('Should have the correct accessibilityHint', () => {
const wrapper = shallowWithIntl(
- ,
+ ,
);
expect(wrapper.props().accessibilityHint).toEqual('Opens the more options right hand sidebar');
});
test('Should have the correct accessibilityLabel', () => {
const wrapper = shallowWithIntl(
- ,
+ ,
);
expect(wrapper.props().accessibilityLabel).toEqual('More Options');
});
diff --git a/app/screens/channel_info/__snapshots__/channel_info.test.js.snap b/app/screens/channel_info/__snapshots__/channel_info.test.js.snap
index c018b780e..6b26c12e3 100644
--- a/app/screens/channel_info/__snapshots__/channel_info.test.js.snap
+++ b/app/screens/channel_info/__snapshots__/channel_info.test.js.snap
@@ -272,6 +272,7 @@ exports[`channelInfo should match snapshot 1`] = `
+
+
+
+
+ detail
+
+
+
+
+`;
diff --git a/app/screens/channel_info/channel_info.js b/app/screens/channel_info/channel_info.js
index dddd77331..ea812df37 100644
--- a/app/screens/channel_info/channel_info.js
+++ b/app/screens/channel_info/channel_info.js
@@ -131,6 +131,7 @@ export default class ChannelInfo extends PureComponent {
{!isDirectMessage &&
<>
@@ -155,6 +156,7 @@ export default class ChannelInfo extends PureComponent {
theme={theme}
/>
diff --git a/app/screens/channel_info/channel_info_row.js b/app/screens/channel_info/channel_info_row.js
index 6ca2b6465..3a3d07d05 100644
--- a/app/screens/channel_info/channel_info_row.js
+++ b/app/screens/channel_info/channel_info_row.js
@@ -25,7 +25,7 @@ function createTouchableComponent(children, action) {
}
function channelInfoRow(props) {
- const {action, defaultMessage, detail, icon, iconColor, image, imageTintColor, rightArrow, textColor, textId, togglable, theme, shouldRender, isLandscape} = props;
+ const {testID, action, defaultMessage, detail, icon, iconColor, image, imageTintColor, rightArrow, textColor, textId, togglable, theme, shouldRender, isLandscape} = props;
if (!shouldRender) {
return null;
@@ -70,7 +70,10 @@ function channelInfoRow(props) {
}
const RowComponent = (
-
+
{iconElement}
{
+ const baseProps = {
+ action: jest.fn(),
+ testID: 'test-id',
+ defaultMessage: 'default-message',
+ detail: 'detail',
+ icon: 'icon',
+ iconColor: '#ababab',
+ image: 1,
+ imageTintColor: '#ffffff',
+ isLandscape: false,
+ rightArrow: true,
+ textId: 'text-id',
+ togglable: false,
+ textColor: '#000000',
+ theme: Preferences.THEMES.default,
+ };
+
+ test('should match snapshot', () => {
+ const wrapper = shallowWithIntl(
+ ,
+ );
+
+ expect(wrapper.getElement()).toMatchSnapshot();
+ });
+});
diff --git a/app/screens/channel_info/edit_channel/__snapshots__/edit_channel.test.js.snap b/app/screens/channel_info/edit_channel/__snapshots__/edit_channel.test.js.snap
index e78414fa6..87473a7c2 100644
--- a/app/screens/channel_info/edit_channel/__snapshots__/edit_channel.test.js.snap
+++ b/app/screens/channel_info/edit_channel/__snapshots__/edit_channel.test.js.snap
@@ -40,6 +40,7 @@ exports[`ChannelInfo -> EditChannel should match snapshot for Edit Channel 1`] =
isLandscape={false}
rightArrow={true}
shouldRender={true}
+ testID="test-id"
textId="mobile.channel_info.edit"
theme={
Object {
diff --git a/app/screens/channel_info/edit_channel/edit_channel.test.js b/app/screens/channel_info/edit_channel/edit_channel.test.js
index 11bf35a53..f97e48bd2 100644
--- a/app/screens/channel_info/edit_channel/edit_channel.test.js
+++ b/app/screens/channel_info/edit_channel/edit_channel.test.js
@@ -18,6 +18,7 @@ jest.mock('@utils/theme', () => {
describe('ChannelInfo -> EditChannel', () => {
const baseProps = {
+ testID: 'test-id',
canEdit: true,
isLandscape: false,
theme: Preferences.THEMES.default,
diff --git a/app/screens/channel_info/edit_channel/edit_channel.tsx b/app/screens/channel_info/edit_channel/edit_channel.tsx
index e2878a82a..109385976 100644
--- a/app/screens/channel_info/edit_channel/edit_channel.tsx
+++ b/app/screens/channel_info/edit_channel/edit_channel.tsx
@@ -12,6 +12,7 @@ import {t} from '@utils/i18n';
import {preventDoubleTap} from '@utils/tap';
interface EditChannelProps {
+ testID?: string;
canEdit: boolean;
isLandscape: boolean;
theme: Theme;
@@ -33,7 +34,7 @@ export default class EditChannel extends PureComponent {
});
render() {
- const {canEdit, isLandscape, theme} = this.props;
+ const {testID, canEdit, isLandscape, theme} = this.props;
if (!canEdit) {
return null;
@@ -43,6 +44,7 @@ export default class EditChannel extends PureComponent {
<>
+`;
diff --git a/app/screens/channel_info/notification_preference/notification_preference.test.js b/app/screens/channel_info/notification_preference/notification_preference.test.js
new file mode 100644
index 000000000..d2bfba623
--- /dev/null
+++ b/app/screens/channel_info/notification_preference/notification_preference.test.js
@@ -0,0 +1,30 @@
+// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
+// See LICENSE.txt for license information.
+
+import React from 'react';
+import {shallowWithIntl} from 'test/intl-test-helper';
+
+import Preferences from '@mm-redux/constants/preferences';
+
+import NotificationPreference from './notification_preference';
+
+describe('NotificationPreference', () => {
+ const baseProps = {
+ testID: 'test-id',
+ channelId: 'channel-id',
+ userId: 'user-id',
+ notifyProps: {
+ push: 'default',
+ },
+ isLandscape: false,
+ theme: Preferences.THEMES.default,
+ };
+
+ test('should match snapshot', () => {
+ const wrapper = shallowWithIntl(
+ ,
+ );
+
+ expect(wrapper.getElement()).toMatchSnapshot();
+ });
+});
diff --git a/app/screens/channel_info/notification_preference/notification_preference.tsx b/app/screens/channel_info/notification_preference/notification_preference.tsx
index af96f25db..1b248857c 100644
--- a/app/screens/channel_info/notification_preference/notification_preference.tsx
+++ b/app/screens/channel_info/notification_preference/notification_preference.tsx
@@ -13,6 +13,7 @@ import {t} from '@utils/i18n';
import {preventDoubleTap} from '@utils/tap';
interface NotificationPreferenceProps {
+ testID?: string;
channelId: string;
userId: string;
notifyProps: ChannelNotifyProps;
@@ -65,7 +66,7 @@ export default class NotificationPreference extends PureComponent
+
+
+
+
+
+
+
+
+ }
+ selected={true}
+ theme={
+ Object {
+ "awayIndicator": "#ffbc42",
+ "buttonBg": "#166de0",
+ "buttonColor": "#ffffff",
+ "centerChannelBg": "#ffffff",
+ "centerChannelColor": "#3d3c40",
+ "codeTheme": "github",
+ "dndIndicator": "#f74343",
+ "errorTextColor": "#fd5960",
+ "linkColor": "#2389d7",
+ "mentionBg": "#ffffff",
+ "mentionBj": "#ffffff",
+ "mentionColor": "#145dbf",
+ "mentionHighlightBg": "#ffe577",
+ "mentionHighlightLink": "#166de0",
+ "newMessageSeparator": "#ff8800",
+ "onlineIndicator": "#06d6a0",
+ "sidebarBg": "#145dbf",
+ "sidebarHeaderBg": "#1153ab",
+ "sidebarHeaderTextColor": "#ffffff",
+ "sidebarText": "#ffffff",
+ "sidebarTextActiveBorder": "#579eff",
+ "sidebarTextActiveColor": "#ffffff",
+ "sidebarTextHoverBg": "#4578bf",
+ "sidebarUnreadText": "#ffffff",
+ "type": "Mattermost",
+ }
+ }
+ />
+
+
+
+
+ }
+ selected={false}
+ theme={
+ Object {
+ "awayIndicator": "#ffbc42",
+ "buttonBg": "#166de0",
+ "buttonColor": "#ffffff",
+ "centerChannelBg": "#ffffff",
+ "centerChannelColor": "#3d3c40",
+ "codeTheme": "github",
+ "dndIndicator": "#f74343",
+ "errorTextColor": "#fd5960",
+ "linkColor": "#2389d7",
+ "mentionBg": "#ffffff",
+ "mentionBj": "#ffffff",
+ "mentionColor": "#145dbf",
+ "mentionHighlightBg": "#ffe577",
+ "mentionHighlightLink": "#166de0",
+ "newMessageSeparator": "#ff8800",
+ "onlineIndicator": "#06d6a0",
+ "sidebarBg": "#145dbf",
+ "sidebarHeaderBg": "#1153ab",
+ "sidebarHeaderTextColor": "#ffffff",
+ "sidebarText": "#ffffff",
+ "sidebarTextActiveBorder": "#579eff",
+ "sidebarTextActiveColor": "#ffffff",
+ "sidebarTextHoverBg": "#4578bf",
+ "sidebarUnreadText": "#ffffff",
+ "type": "Mattermost",
+ }
+ }
+ />
+
+
+
+
+ }
+ selected={false}
+ theme={
+ Object {
+ "awayIndicator": "#ffbc42",
+ "buttonBg": "#166de0",
+ "buttonColor": "#ffffff",
+ "centerChannelBg": "#ffffff",
+ "centerChannelColor": "#3d3c40",
+ "codeTheme": "github",
+ "dndIndicator": "#f74343",
+ "errorTextColor": "#fd5960",
+ "linkColor": "#2389d7",
+ "mentionBg": "#ffffff",
+ "mentionBj": "#ffffff",
+ "mentionColor": "#145dbf",
+ "mentionHighlightBg": "#ffe577",
+ "mentionHighlightLink": "#166de0",
+ "newMessageSeparator": "#ff8800",
+ "onlineIndicator": "#06d6a0",
+ "sidebarBg": "#145dbf",
+ "sidebarHeaderBg": "#1153ab",
+ "sidebarHeaderTextColor": "#ffffff",
+ "sidebarText": "#ffffff",
+ "sidebarTextActiveBorder": "#579eff",
+ "sidebarTextActiveColor": "#ffffff",
+ "sidebarTextHoverBg": "#4578bf",
+ "sidebarUnreadText": "#ffffff",
+ "type": "Mattermost",
+ }
+ }
+ />
+
+
+
+
+ }
+ selected={false}
+ theme={
+ Object {
+ "awayIndicator": "#ffbc42",
+ "buttonBg": "#166de0",
+ "buttonColor": "#ffffff",
+ "centerChannelBg": "#ffffff",
+ "centerChannelColor": "#3d3c40",
+ "codeTheme": "github",
+ "dndIndicator": "#f74343",
+ "errorTextColor": "#fd5960",
+ "linkColor": "#2389d7",
+ "mentionBg": "#ffffff",
+ "mentionBj": "#ffffff",
+ "mentionColor": "#145dbf",
+ "mentionHighlightBg": "#ffe577",
+ "mentionHighlightLink": "#166de0",
+ "newMessageSeparator": "#ff8800",
+ "onlineIndicator": "#06d6a0",
+ "sidebarBg": "#145dbf",
+ "sidebarHeaderBg": "#1153ab",
+ "sidebarHeaderTextColor": "#ffffff",
+ "sidebarText": "#ffffff",
+ "sidebarTextActiveBorder": "#579eff",
+ "sidebarTextActiveColor": "#ffffff",
+ "sidebarTextHoverBg": "#4578bf",
+ "sidebarUnreadText": "#ffffff",
+ "type": "Mattermost",
+ }
+ }
+ />
+
+
+
+
+
+
+`;
diff --git a/app/screens/channel_notification_preference/channel_notification_preference.android.js b/app/screens/channel_notification_preference/channel_notification_preference.android.js
index 4e9d69b1a..7608a1cac 100644
--- a/app/screens/channel_notification_preference/channel_notification_preference.android.js
+++ b/app/screens/channel_notification_preference/channel_notification_preference.android.js
@@ -39,7 +39,10 @@ export default class ChannelNotificationPreferenceAndroid extends ChannelNotific
const options = this.getRadioItems();
return (
-
+