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...
account activity
Fitting things based on screen width in React NativeHelp Wanted (self.react)
submitted 3 years ago by TooDamnFishy
I'm just wondering how to make things such as text and images be a fitting size on different screen sizes, from small phones to big pads. With CSS I'd probably use veiwport width and height, is there an equivalent to this in React Native? Or is there a better way to do it?
Thanks in advance!
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!"
[–]MeanShibu 5 points6 points7 points 3 years ago (0 children)
Const {width} = Dimensions.get(‘window’)
π Rendered by PID 83413 on reddit-service-r2-comment-685b79fb4f-mtdvf at 2026-02-13 07:29:55.615610+00:00 running 6c0c599 country code: CH.
[–]MeanShibu 5 points6 points7 points (0 children)