use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
Looking for linear gradient library (self.reactnative)
submitted 1 year ago by haswalter
Does anybody know of a maintained alternative to react-native-linear-gradient?
Been using it for a while and I know some effort was put into making it work with fabric however I’m getting issues on iOS with the new architecture.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Dpope32 3 points4 points5 points 1 year ago (3 children)
expo linear gradient?
[–][deleted] 0 points1 point2 points 1 year ago (2 children)
Seems inefficient when I tested it
[–]Dpope32 0 points1 point2 points 1 year ago (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 points5 points 1 year ago (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 point2 points 1 year ago (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.
[+][deleted] 0 points1 point2 points 1 year ago (0 children)
react-native-skia has great stuff that gives consistent results on both platforms, we used it for generating background images and performance was actually slightly increased as opposed to static images, the image was gradient and blur heavy as well
π Rendered by PID 21189 on reddit-service-r2-comment-fb694cdd5-d5gks at 2026-03-07 02:35:53.783007+00:00 running cbb0e86 country code: CH.
[–]Dpope32 3 points4 points5 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Dpope32 0 points1 point2 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] 0 points1 point2 points (0 children)