Created
August 7, 2019 12:39
-
-
Save MewX/bd7ee5525c318575bae8ed9173743338 to your computer and use it in GitHub Desktop.
Flex image with full width and auto height
This file contains hidden or 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
{/* Copied from: https://github.com/facebook/react-native/issues/950#issuecomment-380490025 */} | |
<View style={{flex: 1, flexDirection: 'row'}}> | |
<Image | |
resizeMode='contain' | |
style={{ | |
flex: 1, | |
width: null, | |
height: null, | |
aspectRatio: 926/606}} | |
source={Images[status]} /> | |
</View> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment