<commit_before>'use strict';

import React from 'react';
import { ActionSheetIOS, View } from 'react-native';

export default class ActionSheet extends React.Component {
  render() {
    return <View style={{ flex: 1 }}>{React.Children.only(this.props.children)}</View>;
  }

  showActionSheetWithOptions(options, onSelect) {
    const iosOptions = {
      ...options,
      // A null title or message on iOS causes a crash
      title: options.title || undefined,
      message: options.message || undefined,
    };

    ActionSheetIOS.showActionSheetWithOptions(iosOptions, onSelect);
  }
}
<commit_msg>Fixed crash on iOS if the icons array contains elements (like vector icons) rather than image source paths.<commit_after>'use strict';

import React from 'react';
import { ActionSheetIOS, View } from 'react-native';

export default class ActionSheet extends React.Component {
  render() {
    return <View style={{ flex: 1 }}>{React.Children.only(this.props.children)}</View>;
  }

  showActionSheetWithOptions(options, onSelect) {
    const iosOptions = {
      ...options,
      // A null title or message on iOS causes a crash
      title: options.title || undefined,
      message: options.message || undefined,
      icons: undefined,
    };

    ActionSheetIOS.showActionSheetWithOptions(iosOptions, onSelect);
  }
}

{'fraction_non_alphanumeric': 0.11370481927710843, 'fraction_numerical': 0.0015060240963855422, 'mean_word_length': 3.696113074204947, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5350579', 'n_tokens_mistral': 376, 'n_tokens_neox': 369, 'n_words': 113}