From 3f374b95251b9f654e4fc30146c243b67116f297 Mon Sep 17 00:00:00 2001 From: Nicolas Charpentier Date: Thu, 5 May 2016 20:13:23 -0400 Subject: [PATCH] Fix eslint Example/components/TabIcon.js --- Example/components/TabIcon.js | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) 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;