diff --git a/app/screens/channel/channel.js b/app/screens/channel/channel.js index e3d027b89..32989b8a0 100644 --- a/app/screens/channel/channel.js +++ b/app/screens/channel/channel.js @@ -9,6 +9,7 @@ import { AppState, Dimensions, Platform, + StyleSheet, View, } from 'react-native'; import DeviceInfo from 'react-native-device-info'; @@ -26,7 +27,6 @@ import StatusBar from 'app/components/status_bar'; import {ViewTypes} from 'app/constants'; import mattermostBucket from 'app/mattermost_bucket'; import {preventDoubleTap} from 'app/utils/tap'; -import {makeStyleSheetFromTheme} from 'app/utils/theme'; import PostTextbox from 'app/components/post_textbox'; import networkConnectionListener from 'app/utils/network'; import tracker from 'app/utils/time_tracker'; @@ -321,8 +321,6 @@ export default class Channel extends PureComponent { theme, } = this.props; - const style = getStyleFromTheme(theme); - if (!currentChannelId) { if (channelsRequestFailed) { const PostListRetry = require('app/components/post_list_retry').default; @@ -337,7 +335,7 @@ export default class Channel extends PureComponent { const Loading = require('app/components/channel_loader').default; return ( - + - + { - return { - postList: { - backgroundColor: theme.centerChannelBg, - flex: 1, - }, - loading: { - backgroundColor: theme.centerChannelBg, - flex: 1, - }, - channelLoader: { - position: 'absolute', - width: '100%', - flex: 1, - }, - }; +const style = StyleSheet.create({ + flex: { + flex: 1, + }, + channelLoader: { + position: 'absolute', + width: '100%', + flex: 1, + }, });