Add a custom platform? #329
Replies: 2 comments 1 reply
-
I'm honestly not entirely sure, without digging into the codebase a bit and reminding myself how certain things work that I haven't touched in a while. My hunch is that this would not be possible without changes to the library itself (as opposed to some configuration), but I'm not totally sure. Tailwind has a way to define custom prefixes, but that doesn't mean it would transfer over to this library without some manual reimplementation, unless we just sort of got lucky and something already implemented happens to handle it. |
Beta Was this translation helpful? Give feedback.
-
I would be in favor of this. I currently have a RN app that ports to web and would love to use Platform-specific breakpoints for web e.g |
Beta Was this translation helpful? Give feedback.
-
The web portion of my app has an emulator view (just a phone that content can be passed to).
The ios / android prefixes obviously don't work since it's web. md/sm prefixes also don't work since it's checking the browser dimensions not the emulator's dimensions.
Is there a way I could add 2 custom prefixes?
preview - This will be active if within a PhoneProvider.
mobile - This will be ios, android or preview.
Beta Was this translation helpful? Give feedback.
All reactions