We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import MapView, { Marker } from "react-native-maps"; import { useEffect, useRef } from "react"; import React from "react"; import { StyleSheet } from "react-native"; import MapViewDirections from "react-native-maps-directions"; export default function Navigation() { const origin = { latitude: 37.3318456, longitude: -122.0296002 }; const destination = { latitude: 37.771707, longitude: -122.4053769 }; const GOOGLE_MAPS_APIKEY = "mykey";
return ( <MapView initialRegion={{ latitude: origin.latitude, longitude: origin.longitude, latitudeDelta: 0.005, longitudeDelta: 0.005, }} > ); } I have very simple code and i see nothing on screen, no map nothing. https://prnt.sc/SyoQ6ynnLQJQ
The text was updated successfully, but these errors were encountered:
I believe that MapView must been inside View.
Sorry, something went wrong.
No branches or pull requests
import MapView, { Marker } from "react-native-maps";
import { useEffect, useRef } from "react";
import React from "react";
import { StyleSheet } from "react-native";
import MapViewDirections from "react-native-maps-directions";
export default function Navigation() {
const origin = { latitude: 37.3318456, longitude: -122.0296002 };
const destination = { latitude: 37.771707, longitude: -122.4053769 };
const GOOGLE_MAPS_APIKEY = "mykey";
return (
<MapView
initialRegion={{
latitude: origin.latitude,
longitude: origin.longitude,
latitudeDelta: 0.005,
longitudeDelta: 0.005,
}}
>
);
}
I have very simple code and i see nothing on screen, no map nothing.
https://prnt.sc/SyoQ6ynnLQJQ
The text was updated successfully, but these errors were encountered: