Skip to content

Commit

Permalink
Images fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
baconsaur committed Feb 19, 2016
1 parent ba432ea commit 1b20ce6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file not shown.
10 changes: 10 additions & 0 deletions ChirpAlert/routes/singleBird.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,19 @@ class singleBird extends Component {
rectype: this.props.bird.type,
recordist: this.props.bird.rec,
})
console.log('about to fetch image');
fetch('http://127.0.0.1:3000/birds', {
method: 'POST',
headers: {
'Accept' : 'application/json',
'Content-Type' : 'application/json'
},
body: JSON.stringify({
gen: this.props.bird.gen,
sp: this.props.bird.sp
})
}).then(function(response) {
console.log(response._bodyText);
if (response._bodyText != 'nope') {
this.setState({
image: { uri: response._bodyText }
Expand Down

0 comments on commit 1b20ce6

Please sign in to comment.