Skip to content

Instantly share code, notes, and snippets.

@thecookieorg
Created November 22, 2018 10:53
Show Gist options
  • Save thecookieorg/67e3e88beaee4369bfb0544b0956f2a9 to your computer and use it in GitHub Desktop.
Save thecookieorg/67e3e88beaee4369bfb0544b0956f2a9 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import { TouchableOpacity, View, Text } from 'react-native';
export default class MyAwesomeButton extends Component {
render() {
return (
<View>
<TouchableOpacity
style={{
backgroundColor: this.props.backgroundColor,
color: this.props.fontColor
}}
onPress={this.props.onPress()}
>
<Text>{this.props.buttonText></Text>
</TouchableOpacity>
</View>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment