React Native Fit Image
React Native Fit Image enables you to draw responsive image component.
Introduction
Responsive image component to fit perfectly itself.
Install
npm install react-native-fit-image --save
Usage
var styles = StyleSheet.create({
fitImage: {
borderRadius: 20,
},
});
<FitImage
source={{ uri: 'http://facebook.github.io/react/img/logo_og.png' }}
style={styles.fitImage}
/>
<FitImage
source={{ uri: 'http://facebook.github.io/react/img/logo_og.png' }}
originalWidth={400}
originalHeight={400}
style={styles.fitImage}
/>
<FitImage
source={{ uri: 'http://facebook.github.io/react/img/logo_og.png' }}
width={200}
height={200}
style={styles.fitImage}
/>
Example