Advertisement
Guest User

Untitled

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