No Description

Fetch.when.js 429B

12345678910111213141516
  1. // placeholder
  2. {/*<Fetch method="GET"
  3. url={`www.example.com/avatar/${this.state.userId}`}
  4. onSuccess={(data) => { this.setState({avatar : data.path()}) }}
  5. onError={this.showError}>
  6. <Fetch.before>
  7. <Image souce="images/placeholder.png"/>
  8. </Fetch.before>
  9. <Fetch.success>
  10. <Image souce={this.state.avatar}/>
  11. </Fetch.success>
  12. <Fetch.error>
  13. <Image souce="images/error.png"/>
  14. </Fetch.error>
  15. </LoginAction.onPress>*/}