I am interested in utilizing the GeoPoint Object within a react native project. I want to have users press a button that will then send the lat and lng as a GeoPoint Object to my moralis server.
I know this code is not correct but it creates the Objects within my moralis server minus the actual data.
const LatandLng = ({ lat, lng, user}) => { const { isSaving, error, save } = useNewMoralisObject('NftAndLocation'); const Moralis = require('moralis'); // const GeoPoint = useMoralis.GeoPoint; return( <div> {/* {error && <ErrorMessage error={error} />} */} <button onClick={() => save({lat, lng, user})} disabled={isSaving}>Place NFT</button> <div> {GeoPoint} </div> </div> ) }