---
title: "Discussion on \"Introducing React Native Design System (RNDS) 🎉🎉\" | Hashnode"
description: "Discussion on \"Introducing React Native Design System (RNDS) 🎉🎉\". Hey guys, I have been working on a library for a while now. It's a Design System around React Native and this blog answers some of the common questions that you might stumble while going through the repo. So let's start 😁.\nWhat is RNDS 🧐?\nRNDS in s..."
url: "https://hashnode.com/posts/introducing-react-native-design-system-rnds/5e3bd0418a805c490b5b2bce"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Introducing React Native Design System (RNDS) 🎉🎉](https://iamshadmirza.hashnode.dev/introducing-react-native-design-system-rnds?utm_source=hashnode&utm_medium=feed)

Hey guys, I have been working on a library for a while now. It's a Design System around React Native and this blog answers some of the common questions that you might stumble while going through the repo. So let's start 😁. What is RNDS 🧐? RNDS in s...

Feb 6, 2020 · iamshadmirza.hashnode.dev  
Read the article

-   [#react-native](https://hashnode.com/tag/react-native)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#mobile-development](https://hashnode.com/tag/mobile-development)
-   [#javascript-library](https://hashnode.com/tag/javascript-library)

## Written by

[Shad Mirza](https://hashnode.com/@iamshadmirza)

@iamshadmirza · Bengaluru, India

  
[View profile](https://hashnode.com/@iamshadmirza)

Building Hashnode

A JavaScript enthusiast and a creator who knows how to use Keyboard, Pen, Pencil, and Gamepad to their fullest.

## Responses 1

Markdown supported · ⌘↵ to post

[Madhankumar](https://hashnode.com/@madhankumar028)

[Feb 7, 2020](https://hashnode.com/posts/introducing-react-native-design-system-rnds/5e3bd0418a805c490b5b2bce/comment/5e3d22b8a6039fe8236af6bd)

Thanks [Mohd Shad Mirza](https://hashnode.com/@iamshadmirza) for making a design system in React Native and appreciate your efforts.

Coming from the web background, I am just curious about how do you scale the font-size, spacing, height and width of an element. I hope even in the mobile also we have to support different media devices like landscape and portrait.

In the web, I used to set my base space-unit as 1em and then will calculate the remaining space units. Besides this will change the base unit for different devices. By this way I achieved the scaling.

[Shad Mirza](https://hashnode.com/@iamshadmirza)

[Feb 7, 2020](https://hashnode.com/posts/introducing-react-native-design-system-rnds/5e3bd0418a805c490b5b2bce/comment/5e3d22b8a6039fe8236af6bd#reply-5e3d3bafcfe3a2f323d52219)

Hi Madhan, Thank you for the kind words. This Design System is meant to work primarily on Android and iOS. For web, it needs extra configuration and uses React Native Web for that. While working on mobile, we use pixels and the main problem we deal with is when the default font size of device changes (say extra large). Normal Text element from React Native doesn't cover this issue. I am calculating font size based on PixelRatio here: [github.com/iamshadmirza/react-native-design-syste…](https://github.com/iamshadmirza/react-native-design-system/blob/master/src/util/resizeFont.js)

It helps in achieving consistence font size. I'm using flex boxes so layout will just scale when the orientation is changed. I haven't worked a lot in that use cases but if please let me know if something can be improved. Here is a thread where you can drop suggestion: [github.com/iamshadmirza/react-native-design-syste…](https://github.com/iamshadmirza/react-native-design-system/issues/10)

I have worked on 9 apps so far and I think I need help of more experienced people to make this library better. Please drop suggestion if see something not working as expected.

[MARK](https://hashnode.com/@MarkLy)

[Feb 8, 2020](https://hashnode.com/posts/introducing-react-native-design-system-rnds/5e3bd0418a805c490b5b2bce/comment/5e3d22b8a6039fe8236af6bd#reply-5e3ef4b4a6039fe8236b2b9c)

[Mohd Shad Mirza](https://hashnode.com/@iamshadmirza)

Did you think about setting font-size: 6.25%; As a base case? This makes each 1rem = 1 pixel, is scalable natively I believe as well. You could then just have each of your size definitions as rem instead of pixels and they will scale with a11y settings etc. Good luck!

[Shad Mirza](https://hashnode.com/@iamshadmirza)

[Feb 8, 2020](https://hashnode.com/posts/introducing-react-native-design-system-rnds/5e3bd0418a805c490b5b2bce/comment/5e3d22b8a6039fe8236af6bd#reply-5e3f4835a6039fe8236b2e47)

[MARK](https://hashnode.com/@MarkLy) Thank you for the suggestion Mark. I'm gonna try it out.
