vovkasm / react-native-web-image

An image component for react-native with persistent disk and memory caching.
MIT License
146 stars 25 forks source link

Add resizeMode support #1

Closed iisue closed 7 years ago

iisue commented 7 years ago

This add resizeMode to source. PropTypes.oneOf(['cover', 'contain'])

Example. <WebImage source={{ uri: imageUri, resizeMode: 'cover', }} />

vovkasm commented 7 years ago

Thank you very much! Excellent! What do you think about an interface closer to the original Image component?

<WebImage source={{ uri: imageUri }} resizeMode={mode} />
vovkasm commented 7 years ago

Thank you! Will check and merge it in near time!