Created
March 2, 2018 08:15
-
-
Save Royovo/236bebe9945479f6e7aa60728dc407c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Dimensions, Platform } from "react-native"; | |
const { height, width, scale, fontScale } = Dimension.get('window'); | |
const renderHeight = height; | |
const renderWidth = width; | |
const resolution ={ | |
height: renderHeight * scale, | |
width: renderWidth * scale | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment