Location search, initial framework.

This commit is contained in:
whysman 2025-04-25 00:44:06 -04:00
parent d0b76c4a1e
commit 7bbdef9930
2 changed files with 20 additions and 3 deletions

View File

@ -3,6 +3,7 @@ import { Portal, Button, Dialog, useTheme } from "react-native-paper";
import About from "@/components/About"; import About from "@/components/About";
import Privacy from "@/components/Privacy"; import Privacy from "@/components/Privacy";
import Broken from "@/components/Broken"; import Broken from "@/components/Broken";
import Location from "@/components/Location";
interface DialogsProps { interface DialogsProps {
aboutVisible: boolean; aboutVisible: boolean;
@ -58,7 +59,7 @@ const Dialogs: React.FC<DialogsProps> = ({ aboutVisible, privacyVisible, bugVisi
<Dialog visible={locationVisible} onDismiss={() => toggleLocation()} <Dialog visible={locationVisible} onDismiss={() => toggleLocation()}
style={{backgroundColor: theme.colors.primaryContainer}}> style={{backgroundColor: theme.colors.primaryContainer}}>
<Dialog.Title style={{color: theme.colors.primary, textAlign: 'center'}}>Location</Dialog.Title> <Dialog.Title style={{color: theme.colors.primary, textAlign: 'center'}}>Location</Dialog.Title>
<Broken/> <Location />
<Dialog.Actions style={{justifyContent: "center"}}> <Dialog.Actions style={{justifyContent: "center"}}>
<Button onPress={() => toggleLocation()} mode="contained" <Button onPress={() => toggleLocation()} mode="contained"
style={{backgroundColor: theme.colors.inversePrimary}} style={{backgroundColor: theme.colors.inversePrimary}}

View File

@ -1,9 +1,25 @@
import React from "react"; import React from "react";
import Broken from "@/components/Broken"; import {Dialog, TextInput, useTheme} from "react-native-paper";
import {View} from "react-native";
import axios from "axios";
const Location = () => { const Location = () => {
const theme = useTheme();
return ( return (
<Broken /> <Dialog.Content style={{ maxHeight: 300 }}>
<View style={{ padding: 16 }}>
<TextInput
label="Enter Zip Code"
mode="outlined"
style={{ marginBottom: 15, fontFamily: "SpaceReg" }}
placeholderTextColor={theme.colors.primary}
textColor={theme.colors.primary}
theme={{ colors: { text: theme.colors.primary }}}
/>
</View>
</Dialog.Content>
) )
} }