EddyVerbruggen / EddyVerbruggen/nativescript-gradient

iOS gradient

Open
#16 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
54
Forks
6
PR merge metrics
No merged PRs in 30d

Description

On iOS, diagonal gradients don't look right when the container has a larger height than width:

![simulator screen shot apr 9 2018 at 10 51 40](https://user-images.githubusercontent.com/1088051/38513892-74c762de-3be4-11e8-9eae-2f80fb2252e5.png)

I don't know the terms, but the "contour" lines that show the same color should be perpendicular to the direction of the gradient, as they are on Android:

![screenshot_1523296306](https://user-images.githubusercontent.com/1088051/38513976-ae29efb0-3be4-11e8-8850-bf7e877254d3.png)

Strangely, while the Android implementation is supported by [the MDN docs](https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient#Composition_of_a_linear_gradient), OSX Google Chrome shows [this Codepen](https://codepen.io/anon/pen/ZxVdYX) the same way as the iOS implementaiton above.

This is a minor change for this roughly 4:3 height:width ratio, but for large stretched-out containers (like a long ScrollView - our use case), the difference becomes much more pronounced.

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.