mirror of
https://github.com/urosran/cally.git
synced 2025-11-27 00:44:54 +00:00
ui tweaks
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import React from "react";
|
||||
import { StyleSheet } from "react-native";
|
||||
import { Button, View, Text } from "react-native-ui-lib";
|
||||
|
||||
interface IDrawerButtonProps {
|
||||
bgColor: string;
|
||||
color: string;
|
||||
@ -7,6 +9,7 @@ interface IDrawerButtonProps {
|
||||
icon: React.ReactNode;
|
||||
title: string;
|
||||
}
|
||||
|
||||
const DrawerButton = (props: IDrawerButtonProps) => {
|
||||
return (
|
||||
<Button
|
||||
@ -18,9 +21,7 @@ const DrawerButton = (props: IDrawerButtonProps) => {
|
||||
iconSource={() => (
|
||||
<View
|
||||
backgroundColor={props.bgColor}
|
||||
width={60}
|
||||
height={60}
|
||||
style={{ borderRadius: 50 }}
|
||||
style={styles.iconContainer}
|
||||
centerV
|
||||
centerH
|
||||
>
|
||||
@ -34,18 +35,16 @@ const DrawerButton = (props: IDrawerButtonProps) => {
|
||||
flexDirection: "column",
|
||||
justifyContent: "space-between",
|
||||
paddingVertical: 15,
|
||||
|
||||
// Shadow for iOS
|
||||
shadowColor: "#000",
|
||||
shadowOffset: { width: 0, height: 2 },
|
||||
shadowOpacity: 0.3,
|
||||
shadowRadius: 10, // This will create a blurry shadow
|
||||
|
||||
// Shadow for Android
|
||||
elevation: 1,
|
||||
}}
|
||||
></Button>
|
||||
);
|
||||
};
|
||||
|
||||
export default DrawerButton;
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
iconContainer: {
|
||||
width: '70%',
|
||||
aspectRatio: 1,
|
||||
borderRadius: 50,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user