Advertisement
Guest User

Untitled

a guest
Jan 13th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Test extends  React.Component {
  2.  
  3.     _onPress(){
  4.        
  5.         if (this.props.jose){
  6.            // deixa carregar
  7.             this.props.test("YOLO",this.props.index);
  8.         }
  9.  
  10.     }
  11.  
  12.     render(){
  13.         console.log("render"+this.props.text +"INDEX "+this.props.index);
  14.  
  15.         return (
  16.             <View>
  17.                 <Button title={"teste "+this.props.text} onPress={this._onPress.bind(this)} >
  18.  
  19.                 </Button>
  20.             </View>
  21.         );
  22.  
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement