{"size": 328, "ext": "js", "max_stars_repo_path": "app/components/DismissKeyboard/index.js", "max_stars_repo_name": "mishrpranav007/MSP-Logistics-Application", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/components/DismissKeyboard/index.js", "max_issues_repo_name": "mishrpranav007/MSP-Logistics-Application", "max_issues_repo_issues_event_min_datetime": "2021-09-03T01:40:16.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-03T01:40:16.000Z", "max_forks_repo_path": "app/components/DismissKeyboard/index.js", "max_forks_repo_name": "mishrpranav007/MSP-Logistics-Application", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 29.8181818182, "max_line_length": 66, "alphanum_fraction": 0.737804878}
import React from 'react';
import { Keyboard, TouchableWithoutFeedback } from 'react-native';

// eslint-disable-next-line react/prop-types
const DismissKeyboard = ({ children }) => (
  <TouchableWithoutFeedback onPress={() => Keyboard.dismiss()}>
    {children}
  </TouchableWithoutFeedback>
);
export default DismissKeyboard;
