Guest User

Untitled

a guest
Nov 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import { TouchableOpacity, View, Text } from 'react-native';
  3.  
  4. export default class MyAwesomeButton extends Component {
  5. render() {
  6. return (
  7. <View>
  8. <TouchableOpacity
  9. style={{
  10. backgroundColor: this.props.backgroundColor,
  11. color: this.props.fontColor
  12. }}
  13. onPress={this.props.onPress()}
  14. >
  15. <Text>{this.props.buttonText></Text>
  16. </TouchableOpacity>
  17. </View>
  18. )
  19. }
  20. }
Add Comment
Please, Sign In to add comment