Created
July 25, 2016 10:15
-
-
Save nazywamsiepawel/86b792fc7745fc76552a6f337cfd062d to your computer and use it in GitHub Desktop.
Fraction window width react native
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
function pr2width(nom, denom){ | |
const window = Dimensions.get('window') | |
const fraction = window.width / denom | |
return fraction*nom | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment