it takes forever for my location to load, and in turn it delays my map. When I was using expo location, I didn't have this problem, but since I switched to geolocation I delays a lot this is my code:
`import { View, useWindowDimensions, ActivityIndicator, Image, PermissionsAndroid, Platform, } from 'react-native'
import React, {useState, useEffect} from 'react'
import MapView, {Marker, PROVIDER_GOOGLE} from 'react-native-maps';
import Geolocation from '@react-native-community/geolocation';
import * as Location from 'expo-location';
import styles from './styles'
import TMediums from '../../../assets/data/TMediums'
Environment
Platforms
Android
Versions
Description
it takes forever for my location to load, and in turn it delays my map. When I was using expo location, I didn't have this problem, but since I switched to geolocation I delays a lot this is my code: `import { View, useWindowDimensions, ActivityIndicator, Image, PermissionsAndroid, Platform, } from 'react-native' import React, {useState, useEffect} from 'react' import MapView, {Marker, PROVIDER_GOOGLE} from 'react-native-maps'; import Geolocation from '@react-native-community/geolocation'; import * as Location from 'expo-location'; import styles from './styles' import TMediums from '../../../assets/data/TMediums'
const HomeMap = () => { const {width, height} = useWindowDimensions() const [location, setLocation] = useState(null); const [errorMsg, setErrorMsg] = useState(null);
return (
) }
export default HomeMap`
Reproducible Demo