Skip to content

Commit

Permalink
Update README.md with new Thumbnail usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameeha Rahman authored and Sameeha Rahman committed May 2, 2019
1 parent c00b467 commit 4557490
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,14 @@ An Image component that displays either a square or circular image.
<Thumbnail source={require("path/to/image.png")}/>
```

You can use any [Image property](http://facebook.github.io/react-native/docs/image.html), [TouchableOpacity property](http://facebook.github.io/react-native/docs/touchableopacity.html) and the following:

| Prop | Description | Default |
|------------------|----------------------------------------------------------------|------------|
| **`size`** | Size of the image. ('small', 'medium', 'large', 'exlarge') | `'medium'` |
| **`customSize`** | Size of the image, if it does not fit the above defined sizes. | _None_ |
| **`rounded`** | If the image is to be a circle. | _false_ |
You can use any [Image property](http://facebook.github.io/react-native/docs/image.html) and the following:

| Prop | Description | Default |
|------------------|---------------------------------------------------------------------------------------------|------------|
| **`size`** | Size of the image. ('small', 'medium', 'large', 'exlarge') | `'medium'` |
| **`customSize`** | Size of the image, if it does not fit the above defined sizes. | _None_ |
| **`rounded`** | If the image is to be a circle. | _false_ |
| **`onEdit`** | Props to handle an image change of the thumbnail. You can use all `Button` atom properties. | _None_ |

#### Button

Expand Down

0 comments on commit 4557490

Please sign in to comment.