<commit_before>/* eslint-disable react/forbid-prop-types */
import React from 'react';
import PropTypes from 'prop-types';
import * as Animatable from 'react-native-animatable';
import { useConditionalAnimationRef } from '../hooks/index';
import { MILLISECONDS } from '../utilities/index';

export const WithFlash = ({ children, condition, style }) => {
  const ref = useConditionalAnimationRef(condition, 'flash', MILLISECONDS.ONE_SECOND);

  return (
    <Animatable.View style={style} ref={ref}>
      {children}
    </Animatable.View>
  );
};

WithFlash.defaultProps = {
  style: {},
};

WithFlash.propTypes = {<commit_msg>Add WithFlash changes to account for changes to useConditionalAnimationRef<commit_after>/* eslint-disable react/forbid-prop-types */
import React from 'react';
import PropTypes from 'prop-types';
import * as Animatable from 'react-native-animatable';
import { useConditionalAnimationRef } from '../hooks/index';
import { MILLISECONDS } from '../utilities/index';

export const WithFlash = ({ children, condition, style }) => {
  const ref = useConditionalAnimationRef(condition, 'flash', MILLISECONDS.ONE_SECOND);

  return (
    <Animatable.View iterationCount="infinite" animation="flash" style={style} ref={ref}>
      {children}
    </Animatable.View>
  );
};

WithFlash.defaultProps = {
  style: {},
};

WithFlash.propTypes = {
{'fraction_non_alphanumeric': 0.141280353200883, 'fraction_numerical': 0.0, 'mean_word_length': 4.738396624472574, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4478701', 'n_tokens_mistral': 415, 'n_tokens_neox': 413, 'n_words': 98}