import React from "react"; import { View } from "react-native"; import colors from "../config/colors"; import { TouchableOpacity } from "react-native-gesture-handler"; import FormDatePicker from "../components/forms/FormDatePicker"; import FormLocationPicker from "../components/forms/FormLocationPicker"; export default function PickEventDateLocation({ setDate = () => {}, setTime = () => {}, navigation = () => {}, location = true, }) { return ( setDate(value)} onTimeChange={(value) => setTime(value)} /> {location && ( navigation.navigate("FormMap")}> )} ); }