{"size": 410, "ext": "js", "max_stars_repo_path": "AwesomeProject/components/Button.js", "max_stars_repo_name": "meseven/innova-react-native-egitimi", "max_stars_repo_stars_event_min_datetime": "2021-08-09T10:11:52.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-13T21:23:41.000Z", "max_issues_repo_path": "AwesomeProject/components/Button.js", "max_issues_repo_name": "meseven/innova-react-native-egitimi", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "AwesomeProject/components/Button.js", "max_forks_repo_name": "meseven/innova-react-native-egitimi", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.8260869565, "max_line_length": 52, "alphanum_fraction": 0.6780487805}
import React from 'react';
import {TouchableOpacity, Text} from 'react-native';

import PropTypes from 'prop-types';

const MyButton = ({title, onPress}) => {
  return (
    <TouchableOpacity onPress={onPress}>
      <Text>{title}</Text>
    </TouchableOpacity>
  );
};

MyButton.propTypes = {
  title: PropTypes.string.isRequired,
};

MyButton.defaultProps = {
  title: 'Button',
};

export default MyButton;
