Skip to content

Instantly share code, notes, and snippets.

@dnedrow
Created August 30, 2021 18:30
Show Gist options
  • Select an option

  • Save dnedrow/d2f17e0bcb62d628dd56477deb8db057 to your computer and use it in GitHub Desktop.

Select an option

Save dnedrow/d2f17e0bcb62d628dd56477deb8db057 to your computer and use it in GitHub Desktop.
// yarn add react-native-extra-dimensions-android
const {Platform, Dimensions} = require('react-native');
const deviceHeight =
Platform.OS === 'ios'
? Dimensions.get('window').height
: require('react-native-extra-dimensions-android').get('REAL_WINDOW_HEIGHT');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment