Skip to content

Releases: vvivan89/react-native-maps-arrow-line

0.3.1

Choose a tag to compare

@vvivan89 vvivan89 released this 22 May 01:32

Fixed broken default arrow

0.3.0

Choose a tag to compare

@vvivan89 vvivan89 released this 20 Jul 01:02

#2 Added ref forwarding from <MapViewWithHeading> to the child component, such as <MapView>. This allows to use map methods, such as fitToSuppliedMarkers, that are typically applied to a ref.

0.2.1

Choose a tag to compare

@vvivan89 vvivan89 released this 17 Nov 20:54

<MapViewWithHeading> can now receive a custom component to be rendered instead of the generic <MapView> from react-native-maps. This will allow compatibility with other addons to react-native-maps, such as react-native-map-clustering, that also use the modified <MapView> component. Please refer to a working app in /example folder.

0.2.0

Choose a tag to compare

@vvivan89 vvivan89 released this 17 Nov 19:34

Bug fixes

#1 - arrows do not follow manual rotation of the map

Changes

Introduced MapViewWithHeading component as an HOC above MapView from react-native-maps. The purpose of this HOC is to receive the camera heading of the map and pass it to ArrowedPolyline to calculate the necessary additional arrow rotation.

Backwards compatibility

Partly Compatible
✔️ ArrowedPolyline component v0.1.2 and below, used with generic MapView from react-native-maps will continue to work.

✖️ The map rotation issue could only be fixed by manually replacing the MapView component with the MapViewWithHeading component from the package.

0.1.2

Choose a tag to compare

@vvivan89 vvivan89 released this 17 Nov 19:24
fixed typos in readme