[FIX] Automatic theme repeating (#1457)

This commit is contained in:
Diego Mello 2019-12-11 16:30:32 -03:00 committed by GitHub
parent 8823734d43
commit b93f689060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 7 deletions

View File

@ -49,6 +49,10 @@ const THEMES = [
}
];
if (supportSystemTheme()) {
THEMES.unshift(SYSTEM_THEME);
}
const styles = StyleSheet.create({
list: {
paddingBottom: 18
@ -76,13 +80,6 @@ class ThemeView extends React.Component {
setTheme: PropTypes.func
}
constructor(props) {
super(props);
if (supportSystemTheme()) {
THEMES.unshift(SYSTEM_THEME);
}
}
isSelected = (item) => {
const { themePreferences } = this.props;
const { group } = item;