Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import React, { Component } from "react";
  2. import propTypes from "prop-types";
  3. import { Text, View, TouchableHighlight, StyleSheet } from "react-native";
  4. import colors from "../../styles/color";
  5. export default class RoundedButton extends Component {
  6. render() {
  7. const { text } = this.props;
  8. return (
  9. <TouchableHighlight style={styles.wrapper}>
  10. <Text style={styles.buttonText}>{text}</Text>
  11. </TouchableHighlight>
  12. );
  13. }
  14. }
  15. RoundedButton.propTypes = {
  16. text: propTypes.string.isRequired
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement