Skip to content
New issue

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

I see nothing on my mobile screen(android emulator) #214

Open
ankur1163 opened this issue Feb 1, 2023 · 1 comment
Open

I see nothing on my mobile screen(android emulator) #214

ankur1163 opened this issue Feb 1, 2023 · 1 comment

Comments

@ankur1163
Copy link

ankur1163 commented Feb 1, 2023

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

@matheuspbmarques
Copy link

matheuspbmarques commented Feb 1, 2023

I believe that MapView must been inside View.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants