Skip to content

Commit cdf27c1

Browse files
committed
Update README.md
1 parent 0821cb5 commit cdf27c1

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
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
712
To install the module, run the following in the command line:
@@ -38,8 +43,7 @@ export default class Demo extends Component {
3843
const styles = StyleSheet.create({
3944
image: {
4045
width: 150,
41-
height: 'auto',
42-
resizeMode: 'contain'
46+
height: 'auto'
4347
}
4448
});
4549
```

0 commit comments

Comments
 (0)