Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. constructor(props) {
  2.  
  3. super(props);
  4.  
  5. this.state = {
  6. categorias: [],
  7. refreshing: true
  8. }
  9.  
  10. this.buscarSubcategorias = this.buscarSubcategorias.bind(this);
  11. }
  12.  
  13. buscarSubcategorias(categoria_id) {
  14. alert(categoria_id);
  15. }
  16.  
  17. <TouchableHighlight key={ item.id } onPress={ () => { this.buscarSubcategorias(item.id) }}>
  18. <Text style={ styles.txtLinks }>{ item.nome }</Text>
  19. </TouchableHighlight>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement