Yeah similar approach with HOC for class components. I actually just released a small RN component for this(actually my first npm package). npmjs.com/package/react-native-get...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have a custom hook that checks the app dimensions and returns if itβs small/medium/large: github.com/devhubapp/devhub/blob/m...
Besides that, make sure to always use flexbox and percentages where makes sense, not fixed widths in pixels.
Yeah similar approach with HOC for class components. I actually just released a small RN component for this(actually my first npm package). npmjs.com/package/react-native-get...