Responsive Design in React Native
Élie Slama
17616

We use StyleSheets as it passes an Id between different files which can later be referenced directly or flattened to extract individual values in corresponding classes. In your implementation you have passed StyleSheet as a JSON (thereby no benefits of passing Stylesheet) and then in the main file you are reconstructing a StyleSheet. For small scale applications this is not a major issue but it causes performance issues on Large scale products.

Show your support

Clapping shows how much you appreciated cherag verma’s story.