-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
65 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import { View } from 'react-native'; | ||
import MapView from 'react-native-maps'; | ||
import tw from '../lib/tailwind'; | ||
|
||
// latitude = y-axis | ||
// longitude = x-axis | ||
// latitude, longitude | ||
const southWestCoordinates = [-20.525305, 57.307921]; | ||
const northEastCoordinates = [-19.982901, 57.806426]; | ||
const centreCoordinates = [-20.254103, 57.5571735]; | ||
|
||
export default function Map() { | ||
return ( | ||
<View style={tw`h-full`}> | ||
<MapView | ||
style={tw`flex-1`} | ||
provider="google" | ||
initialRegion={{ | ||
latitude: centreCoordinates[0], | ||
longitude: centreCoordinates[1], | ||
latitudeDelta: 0.7, | ||
longitudeDelta: 0.7, | ||
}} | ||
> | ||
<View style={tw`h-10 w-10 bg-red-500`}></View> | ||
</MapView> | ||
</View> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters