30 lines
787 B
TypeScript
30 lines
787 B
TypeScript
import { BackButton } from "@/components";
|
|
import MapsView from "@/screens/Maps/MapsView";
|
|
import MapsView2 from "@/screens/Maps/MapsView2";
|
|
import { Stack } from "expo-router";
|
|
import { Platform, Text, View } from "react-native";
|
|
|
|
export interface LocationItem {
|
|
id: string | number;
|
|
latitude: number;
|
|
longitude: number;
|
|
name: string;
|
|
imageId?: string;
|
|
}
|
|
|
|
export default function Maps() {
|
|
return (
|
|
<>
|
|
{/* <Stack.Screen
|
|
options={{
|
|
title: "Maps",
|
|
headerLeft: () => <BackButton />,
|
|
}}
|
|
/> */}
|
|
{Platform.OS === "ios" ? <MapsView /> : <MapsView2 />}
|
|
{/* <MapsView2 /> */}
|
|
{/* <View style={{ flex: 1, backgroundColor: "gray" }}><Text style={{ color: "white" }}>Map disabled</Text></View> */}
|
|
</>
|
|
);
|
|
}
|