react-native-responsive-screen
react-native-responsive-screen copied to clipboard
Fix an issue where screenWidth and screenHeight could be zero
Often screenWidth and screenHeight are 0, because Dimensions.get('window') doesn't return the actual dimensions. If so, try to use Dimensions.get('screen').
Hey @mrigo thanks for the PR! I'm getting a maintainer pretty soon, in order to take over; we 'll have a look :) Thanks again
Hey @mrigo and happy new year! I'm having a look at it now. Can you elaborate differences between 'window' VS 'screen' please? Or link some related documentation? Thanks!
@mrigo Also which are the conditions under you are noticing 'window' to return 0 ? Never experienced that so far.