From dde3256c6eba26cbbb42b9261315ca5543482cfd Mon Sep 17 00:00:00 2001 From: whysman Date: Fri, 25 Apr 2025 01:22:42 -0400 Subject: [PATCH] changing layout again --- components/Location.tsx | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/components/Location.tsx b/components/Location.tsx index 2c30619..eeab7e3 100644 --- a/components/Location.tsx +++ b/components/Location.tsx @@ -7,6 +7,8 @@ import log from "@/util/log" export const API_URL = process.env.EXPO_PUBLIC_API_URL; +const BUTTON_WIDTH = 260; + const LocationComponent = () => { const theme = useTheme(); const [zip, setZip] = useState(""); @@ -53,18 +55,30 @@ const LocationComponent = () => { onPress={handleGetLocation} loading={locLoading} disabled={locLoading} - style={{ marginBottom: 12, width: 200 }} + style={{ marginBottom: 12, width: BUTTON_WIDTH }} > Use My Location OR - + { onPress={handleSubmit} loading={loading} disabled={!zip || loading} - style={{ width: "100%" }} + style={{ + flex: 2, + minWidth: 0, + height: 50, + }} + contentStyle={{ height: 50 }} > Submit