text: 'use strict';
  
  import React from 'react';
  import PropTypes from 'prop-types';
  import {
    Text,
    View,
  } from 'react-native';
  
  import ViewPropTypes from './config/ViewPropTypes';
  
  export default class TabNavigatorItem extends React.Component {
    static propTypes = {
      renderIcon: PropTypes.func,
      renderSelectedIcon: PropTypes.func,
      badgeText: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
      renderBadge: PropTypes.func,
      title: PropTypes.string,
      titleStyle: Text.propTypes.style,
      selectedTitleStyle: Text.propTypes.style,
      tabStyle: ViewPropTypes.style,
      selected: PropTypes.bool,
      onPress: PropTypes.func,
      allowFontScaling: PropTypes.bool,
    };
  
    static defaultProps = {
    };
  
    render() {
      let child = React.Children.only(this.props.children);
      return React.cloneElement(child, {
        style: [child.props.style, this.props.style],
      });
    }
  }
  