bramus / bramus/react-native-maps-directions

How do I get a linear gradient in strokeColor props

Open
#178 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
210
PR merge metrics
No merged PRs in 30d

Description

I am trying to create a linear gradient on the stroke of maps. Currently this is my attempt by far, which failed too.

```


}
timePrecision={"now"}
onReady={data => {
console.log('ONREADY DATA: ', data);
setDuration(data.duration);
setDistance(data.distance * 0.621371);
setCarAngle(calculateAngle(data.coordinates));
getTripStatus(tripInfo.ID, username, password)
}}
/>
```

This is the result I am looking for is
![Screenshot 2021-10-22 at 4 22 23 PM](https://user-images.githubusercontent.com/40719485/138445930-044da618-ddc7-4593-aa81-b7516d0d0fb4.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.