<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sanketh Chebbi on Medium]]></title>
        <description><![CDATA[Stories by Sanketh Chebbi on Medium]]></description>
        <link>https://medium.com/@cr33dcode?source=rss-c6ba47c520e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KmRTm7xQK0ctMrQ_</url>
            <title>Stories by Sanketh Chebbi on Medium</title>
            <link>https://medium.com/@cr33dcode?source=rss-c6ba47c520e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 11:37:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cr33dcode/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Dynamic font scaling in React Native.]]></title>
            <link>https://tech.groww.in/dynamic-font-scaling-in-react-native-c8485b066607?source=rss-c6ba47c520e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8485b066607</guid>
            <category><![CDATA[web]]></category>
            <category><![CDATA[typography]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[fonts]]></category>
            <category><![CDATA[mobile-fonts]]></category>
            <dc:creator><![CDATA[Sanketh Chebbi]]></dc:creator>
            <pubDate>Thu, 28 Apr 2022 05:13:05 GMT</pubDate>
            <atom:updated>2025-04-21T07:01:39.164Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qorqKYd7PKBpGafY.png" /><figcaption>Image credit <a href="https://spec.fm/">https://spec.fm/</a></figcaption></figure><p><a href="https://reactnative.dev/">React Native</a> is a robust cross-platform framework that combines the best of both worlds: native development and React, a JavaScript library for creating user interfaces using UI components.</p><p>With iOS and Android’s cross-platform compatibility, there are a plethora of devices available with many different resolutions. Developers need to design the interface in a way that is consistent across all the devices.</p><p>To address this issue, we, at <a href="https://groww.in/">Groww</a>, have implemented font scaling. The function takes into account the dimensions of the device on which the app is running and scales the font of a certain component accordingly using <em>ratio estimation</em>.</p><p>For reference, we assign a base dimension that was utilised by the design team to mock up the designs, and then scale our typefaces to the proper dimension utilising these.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EohGQPus-Z-oSNyE" /></figure><p><em>windowDimensions </em>holds the dimensions of the device assigned and the base dimensions were assigned as discussed above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z159JCOeGRwXLnXB" /></figure><p>The function <em>getScaledDimension</em> takes two parameters: a dimension and its type. We start with a default ratio of 1 and we adjust it as we go through the cases.</p><p>The ratio is primarily intended to assist us in comprehending the metric that helps us to understand font scaling.</p><p>And there you have it! With this update, regardless of the device’s display size, the font will always be the readable size.</p><p>If you’ve enjoyed this story, please click the 👏 button and share it, so that others can find it as well! Also, feel free to leave a comment below.</p><p><a href="http://tech.groww.in/">Groww Engineering</a> publishes technical anecdotes, the latest technologies, and better ways to tackle common programming problems. You can <a href="https://medium.com/groww-engineering">subscribe here</a> to get the latest updates.</p><p>We are hiring. View job openings <a href="https://groww.in/careers">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8485b066607" width="1" height="1" alt=""><hr><p><a href="https://tech.groww.in/dynamic-font-scaling-in-react-native-c8485b066607">Dynamic font scaling in React Native.</a> was originally published in <a href="https://tech.groww.in/">The Groww Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>