I am trying to use @react-navigation/native-stack and presentation: 'modal' to get more native feel on tablets. My problem is I did not find any way how to get dimensions of modal window. I tried both useWindowDimensions()
and Dimensions.get('window/screen')
but I always get size of whole app window, not just the modal window size.
Is there any way how to do that?