mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
fixed tablet view / spelling
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
import React from "react";
|
||||
import { StyleSheet } from "react-native";
|
||||
import { Button, View, Text } from "react-native-ui-lib";
|
||||
import * as Device from "expo-device";
|
||||
import { DeviceType } from "expo-device";
|
||||
|
||||
interface IDrawerButtonProps {
|
||||
bgColor: string;
|
||||
@ -11,6 +13,17 @@ interface IDrawerButtonProps {
|
||||
}
|
||||
|
||||
const DrawerButton = (props: IDrawerButtonProps) => {
|
||||
const isTablet: boolean = Device.deviceType === DeviceType.TABLET;
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
iconContainer: {
|
||||
width: "70%",
|
||||
aspectRatio: 1,
|
||||
borderRadius: 50,
|
||||
},
|
||||
labelStyle: { fontSize: 15, fontFamily: "Poppins_400Regular" },
|
||||
});
|
||||
|
||||
return (
|
||||
<Button
|
||||
onPress={props.pressFunc}
|
||||
@ -40,12 +53,3 @@ const DrawerButton = (props: IDrawerButtonProps) => {
|
||||
);
|
||||
};
|
||||
export default DrawerButton;
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
iconContainer: {
|
||||
width: "70%",
|
||||
aspectRatio: 1,
|
||||
borderRadius: 50,
|
||||
},
|
||||
labelStyle: { fontSize: 15, fontFamily: "Poppins_400Regular" },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user