How to get Screen Size with Ionic React?

Hi all,

I saw, in Ionic Angular, the Platform hast height() and width() methods to get the device size, but how is in react? In react missing the two methods… :worried:

You can add a custom hook to get the window dimensions.

1 Like

Thanks very much for this solution! It solves my problem!