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