File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# react-native-image-auto-height
22[ ![ npm] ( https://img.shields.io/npm/v/github-buttons )] ( https://www.npmjs.com/package/react-native-image-auto-height )
33
4- This component provides you with an easy way to automatically set the height of the image to the provided width without using additional props
4+ This component provides you with an easy way to automatically set the height of the image to the provided width without using additional props.
5+
6+ ## Features
7+ - Can be used in the same way as an ` Image ` component from react-native, no extra props
8+ - All common props of component ` Image ` from react-native are supported
9+ - Auto height setting with CSS-like styles
510
611## Install
712To install the module, run the following in the command line:
@@ -38,8 +43,7 @@ export default class Demo extends Component {
3843const styles = StyleSheet .create ({
3944 image: {
4045 width: 150 ,
41- height: ' auto' ,
42- resizeMode: ' contain'
46+ height: ' auto'
4347 }
4448});
4549```
You can’t perform that action at this time.
0 commit comments