forked from vergnet/application-amicale
Improved settings nightmode checkbox
This commit is contained in:
parent
e2f74b97e6
commit
8c779e0ed6
1 changed files with 5 additions and 3 deletions
|
@ -171,8 +171,10 @@ export default class SettingsScreen extends React.Component<Props, State> {
|
||||||
</Text>
|
</Text>
|
||||||
</Body>
|
</Body>
|
||||||
<Right>
|
<Right>
|
||||||
<CheckBox checked={this.state.nightMode}
|
<CheckBox
|
||||||
onPress={() => this.toggleNightMode()}/>
|
checked={this.state.nightMode}
|
||||||
|
onPress={() => this.toggleNightMode()}
|
||||||
|
style={{marginRight: 20}}/>
|
||||||
</Right>
|
</Right>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
);
|
);
|
||||||
|
@ -228,7 +230,7 @@ export default class SettingsScreen extends React.Component<Props, State> {
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<CustomHeader navigation={nav} title={i18n.t('screens.settings')} hasBackButton={true}
|
<CustomHeader navigation={nav} title={i18n.t('screens.settings')} hasBackButton={true}
|
||||||
rightButton={this.getRightButton()}/>
|
rightButton={this.getRightButton()}/>
|
||||||
<Content padder>
|
<Content padder>
|
||||||
<Card>
|
<Card>
|
||||||
<CardItem header>
|
<CardItem header>
|
||||||
|
|
Loading…
Reference in a new issue