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; color: string; pressFunc: () => void; icon: React.ReactNode; title: string; } const DrawerButton = (props: IDrawerButtonProps) => { const isTablet: boolean = Device.deviceType === DeviceType.TABLET; const styles = StyleSheet.create({ iconContainer: { width: isTablet ? '50%' : "70%", aspectRatio: 1, borderRadius: 100, }, labelStyle: { fontSize: 15, fontFamily: "Poppins_400Regular" }, }); return ( ); }; export default DrawerButton;