Working with Maps in React Native
Dec 14, 2020
If you build a project and you are going to use a map, you have to use react-native-maps package.
In order to use react-native-maps you should do:
- install library:
npm install react-native-maps --save-exactoryarn add react-native-maps -E
2. import elements from this library:
3. Render Map
There is some props inside <Marker> element:
- Image: represents Marker Image
- Callout: pop up element, which shows up when you press on marker element
My markerArray:
I just hardcoded some locations
And as a result I got this:
I hope this blogpost would be helpful.