diff --git a/Example/components/TabIcon.js b/Example/components/TabIcon.js index 467b24bdf..e4e5def63 100644 --- a/Example/components/TabIcon.js +++ b/Example/components/TabIcon.js @@ -1,9 +1,19 @@ import React from 'react'; -import {Text} from "react-native"; -export default class extends React.Component { - render(){ - return ( - {this.props.title} - ); - } -} +import { PropTypes, Text } from 'react-native'; + +const propTypes = { + selected: PropTypes.string, + title: PropTypes.string, +}; + +const TabIcon = (props) => ( + + {props.title} + +); + +TabIcon.propTypes = propTypes; + +export default TabIcon;