Created
October 13, 2020 17:36
-
-
Save airbugg/c8c4c813a17bf9fa62650ce75f01fe24 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
const { width, height } = event.nativeEvent.layout; | |
const length = min(width, height); | |
const ovalDimensionsStyle = { | |
width: length * .5, | |
height: length * .5, | |
borderRadius: length, | |
}; | |
<View style={[styles.oval, ovalDimensionsStyle]}/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment