import React from "react"; import { View, Platform } from "react-native"; import { IconButton } from "react-native-paper"; import { MaterialCommunityIcons } from "@expo/vector-icons"; import { createStyles } from "~/theme"; export default function RadarButton({ onPress, isLoading = false, flex = 0.22, }) { const styles = useStyles(); return ( ( )} /> ); } const useStyles = createStyles(({ wp, hp, theme: { colors, custom } }) => ({ container: { alignItems: "flex-end", justifyContent: "center", marginTop: 10, marginBottom: 10, flex: 1, // Stretch to fill available space }, button: { backgroundColor: colors.primary, elevation: 4, shadowColor: "#000", shadowOffset: { width: 0, height: 2, }, shadowOpacity: 0.25, shadowRadius: 3.84, minHeight: 48, // Match minimum touch target height height: "100%", aspectRatio: 1, borderRadius: 8, overflow: Platform.select({ ios: "hidden", android: "visible" }), }, icon: { color: colors.onPrimary, }, }));