react-native-maps-directions icon indicating copy to clipboard operation
react-native-maps-directions copied to clipboard

Allows user to set AvoidTolls

Open JakeOrel opened this issue 4 years ago • 2 comments

MapViewDirections

  • Adds avoidTolls to the componentWillUpdate watch
  • Passes avoidTolls to fetchRoute, if set to true it will update the URL to contain '&avoid=tolls'
  • Declares prop under propTypes as bool

Index.d.ts

  • adds the avoidTolls to declaration with an explanation as to what it does

same changes as last time i made a pr but on a new repo where my formatter didnt make a bunch of changes

JakeOrel avatar Oct 26 '21 16:10 JakeOrel

There’s a typo in the typings file: it reads avoitTolls instead of avoidTolls

bramus avatar Apr 25 '22 13:04 bramus

Updated typo

JakeOrel avatar May 18 '22 22:05 JakeOrel