Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>
- )
- }
- }
Add Comment
Please, Sign In to add comment