forked from vergnet/application-amicale
Fixed sidemenu image being cut off on some devices
This commit is contained in:
parent
a38e251cb5
commit
32069f2b8c
1 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ import CustomMaterialIcon from '../components/CustomMaterialIcon';
|
||||||
import ThemeManager from "../utils/ThemeManager";
|
import ThemeManager from "../utils/ThemeManager";
|
||||||
|
|
||||||
const deviceHeight = Dimensions.get("window").height;
|
const deviceHeight = Dimensions.get("window").height;
|
||||||
|
const deviceWidth = Dimensions.get("window").width;
|
||||||
|
|
||||||
const drawerCover = require("../assets/drawer-cover.png");
|
const drawerCover = require("../assets/drawer-cover.png");
|
||||||
|
|
||||||
|
@ -136,8 +137,8 @@ export default class SideBar extends React.Component<Props, State> {
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
drawerCover: {
|
drawerCover: {
|
||||||
height: deviceHeight / 5,
|
height: deviceWidth / 3,
|
||||||
width: deviceHeight / 2.5,
|
width: 2 * deviceWidth / 3,
|
||||||
position: "relative",
|
position: "relative",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
marginTop: 20
|
marginTop: 20
|
||||||
|
|
Loading…
Reference in a new issue