Created
October 1, 2018 15:30
-
-
Save enieber/bdc3ac85736c3069f94e84af60349332 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| * @format | |
| */ | |
| import React, { PureComponent } from 'react'; | |
| import { View, Text, Button } from 'react-native'; | |
| class Product extends PureComponent { | |
| render() { | |
| return ( | |
| <View> | |
| <Text>{this.props.title}</Text> | |
| <Text>{this.props.description}</Text> | |
| <Text>{this.props.value}</Text> | |
| <Button | |
| onPress={this.props.buyProduct} | |
| title="Comprar" | |
| accessibilityLabel="Button to buy product" | |
| /> | |
| </View> | |
| ); | |
| } | |
| } | |
| export default Product; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment