Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <TouchableOpacity onPress={this._onPressButtonMassa}>
  2. <View style={[styles.button, this.props.hipertrofia === 'sim' ?
  3. { backgroundColor: 'black' } : { backgroundColor: 'white' }]}>
  4. <Icon name="bicycle" size={50} color="#FAFAFA" />
  5. <Text style={styles.buttonText}>Quero ganhar massa</Text>
  6. </View>
  7. </TouchableOpacity>
  8.  
  9. _onPressButtonMassa = () => {
  10. this.setState({ hipertrofia: 'sim' });
  11. this.setState({ perdapeso: 'nao' });
  12. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement