Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from "react";
- import propTypes from "prop-types";
- import { Text, View, TouchableHighlight, StyleSheet } from "react-native";
- import colors from "../../styles/color";
- export default class RoundedButton extends Component {
- render() {
- const { text } = this.props;
- return (
- <TouchableHighlight style={styles.wrapper}>
- <Text style={styles.buttonText}>{text}</Text>
- </TouchableHighlight>
- );
- }
- }
- RoundedButton.propTypes = {
- text: propTypes.string.isRequired
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement