Location very slow

Hi all,
now i hav eexpo 28 and the location are so slow in android… there is any trick for make a fast location? this is my code:

_getLocationAsync = async () => {
        this.setState({loadGeoLoc:true})
        const {locationServicesEnabled} = await Location.getProviderStatusAsync();
        if (!locationServicesEnabled) {
            this.setState({loadGeoLoc:false})
            this.props.CheckInCallback('listCheckin')
        }
        else {
            let {status} = await Permissions.askAsync(Permissions.LOCATION);
            if (status !== 'granted') {
                this.props.CheckInCallback('listCheckin')
            }
            else if (this.props.userMeData && this.props.userMeData.userMe && this.props.userMeData.userMe.user){
                let location = await Location.getCurrentPositionAsync({enableHighAccuracy: true});
                let obj = {
                    lat: location.coords.latitude,
                    lng: location.coords.longitude,
                    userId: this.props.userMeData.userMe.user.id
                }

                this.props.dispatch(nearest(I18n.locale, obj, this.props.userMeData.userMe.user.api_access_token))
            }
            this.setState({loadGeoLoc:false})
        }
    };

i try expo 30 but now is very slow in ios and Andorid to :slight_smile:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.