Auto Guideline/Dimensions Support #58
Replies: 2 comments 2 replies
-
Hello @ridvanaltun 👋 To be honest, I have never used such functionality in any of my apps. Nevertheless, it does seem logical. I checked the linked repository, and in the README, there are many conditions. By default, it should scale your numeric values, but if you don’t want this, you must prevent it in various ways. How do you view this functionality? Should we scale every number? How can we disable scaling for certain values? I think the correct approach would be to introduce a plugin pipeline, so you can control the scaling or modify your styles as desired. |
Beta Was this translation helpful? Give feedback.
-
Implemented! |
Beta Was this translation helpful? Give feedback.
-
As you know, when developing applications for phones, we use guideline functions to ensure that the design looks the same on every phone. Instead of calling and using these functions in the code every time, we can automate them for specific styles in the library.
As an example, I will demonstrate the guideline functions I have used in my own developed projects:
The usage is generally as follows:
I believe that with this library, we can rid ourselves of the hassle of using the guideline function every time.
There is made version of this idea here: https://github.com/luminos-software/react-native-auto-stylesheet
What do you think? @jpudysz
Beta Was this translation helpful? Give feedback.
All reactions