{"size": 365, "ext": "js", "max_stars_repo_path": "src/utils/interactionManager.js", "max_stars_repo_name": "heitorflorido/NativeBase", "max_stars_repo_stars_event_min_datetime": "2020-07-13T09:32:38.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-16T22:04:25.000Z", "max_issues_repo_path": "src/utils/interactionManager.js", "max_issues_repo_name": "heitorflorido/NativeBase", "max_issues_repo_issues_event_min_datetime": "2020-07-19T02:20:38.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T10:01:46.000Z", "max_forks_repo_path": "src/utils/interactionManager.js", "max_forks_repo_name": "heitorflorido/NativeBase", "max_forks_repo_forks_event_min_datetime": "2020-04-22T01:15:33.000Z", "max_forks_repo_forks_event_max_datetime": "2020-07-28T14:18:36.000Z"}
{"max_stars_count": 7, "max_issues_count": 4, "max_forks_count": 8, "avg_line_length": 20.2777777778, "max_line_length": 51, "alphanum_fraction": 0.5808219178}
import { InteractionManager } from 'react-native';

export default {
  ...InteractionManager,
  runAfterInteractions: f => {
    let called = false;
    const timeout = setTimeout(() => {
      called = true;
      f();
    }, 10);
    InteractionManager.runAfterInteractions(() => {
      if (called) return;
      clearTimeout(timeout);
      f();
    });
  }
};
