Skip to content

Commit

Permalink
Added documentation for additional fields of Image
Browse files Browse the repository at this point in the history
Added method, headers and body example for Image component
  • Loading branch information
DanielMSchmidt committed Sep 9, 2016
1 parent 5f381fd commit d68b242
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/Images.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@ Many of the images you will display in your app will not be available at compile
<Image source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}} />
```

### Network Requests for Images

If you would like to set such things as the HTTP-Verb, Headers or a Body along with the image request, you may do this by defining these properties on the source object:

```javascript
<Image source={{
uri: 'https://facebook.github.io/react/img/logo_og.png',
method: 'POST',
headers: {
Pragma: 'no-cache'
},
body: 'Your Body goes here'
}}
style={{width: 400, height: 400}} />
```

## Local Filesystem Images

See [CameraRoll](docs/cameraroll.html) for an example of
Expand Down

0 comments on commit d68b242

Please sign in to comment.