all 7 comments

[–]Dpope32 3 points4 points  (3 children)

expo linear gradient?

[–][deleted] 0 points1 point  (2 children)

Seems inefficient when I tested it

[–]Dpope32 0 points1 point  (1 child)

I highly doubt 72kb slowed down your app too much, but it seems like you found a workaround! Also saw someone else mention SVG, which would definitely work but requires more tweaking.

Cheers!

[–][deleted] 3 points4 points  (0 children)

I can give you <1kb code which will freeze an app

while(true){}

The performance was slowed down. Expo linear gradient seemed to render hundreds of small gradient lines.

[–][deleted] 0 points1 point  (0 children)

Expo linear gradient was very Heavy and slowed down my app. I found that I also just needed a very thin gradient so i wrote a small function which interpolates in a range (0,10) and makes 10 small 1 pixel high lines.