Replies: 1 comment 1 reply
-
If you're using Expo you could still use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I was using RNW, relying on dimensions was simple.
useWindowDimensions
hook.But now, I am wondering what how should I write my code relying window dimensions. I am aware that I could write multiple implementations or using conditional code, but I am wondering if some people don't already have a hook to handle this, that would make sense in RSD itself.
Some platform specific code can be tricky to handle, so it make sense to have somehow complex various implementations, but for things like window dimensions, it would make sense to have a hook, don't you think ?
Do somehow have a tiny lib to share or should I work on my own ? Thanks !
Beta Was this translation helpful? Give feedback.
All reactions