forked from vergnet/application-amicale
Fixed ios icon position
This commit is contained in:
parent
b46e671d83
commit
5b994aab95
1 changed files with 20 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {Button, Card, withTheme} from 'react-native-paper';
|
import {Button, Card, withTheme} from 'react-native-paper';
|
||||||
import {StyleSheet} from "react-native";
|
import {Platform, StyleSheet} from "react-native";
|
||||||
import i18n from 'i18n-js';
|
import i18n from 'i18n-js';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
@ -38,13 +38,25 @@ class ActionsDashBoardItem extends React.PureComponent<Props> {
|
||||||
>
|
>
|
||||||
{i18n.t("homeScreen.servicesButton")}
|
{i18n.t("homeScreen.servicesButton")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
{
|
||||||
icon="settings"
|
// Leave space to fix ios icon position
|
||||||
mode="contained"
|
Platform.OS === 'ios'
|
||||||
onPress={this.gotToSettings}
|
? <Button
|
||||||
style={styles.settingsButton}
|
icon="settings"
|
||||||
compact
|
mode="contained"
|
||||||
/>
|
onPress={this.gotToSettings}
|
||||||
|
style={styles.settingsButton}
|
||||||
|
compact
|
||||||
|
> </Button>
|
||||||
|
: <Button
|
||||||
|
icon="settings"
|
||||||
|
mode="contained"
|
||||||
|
onPress={this.gotToSettings}
|
||||||
|
style={styles.settingsButton}
|
||||||
|
compact
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
|
||||||
</Card.Content>
|
</Card.Content>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue