ignite-router-flux
Version:
Infinite Red's hot boilerplate for React Native.
22 lines (17 loc) • 360 B
JavaScript
import React from 'react'
import PropTypes from 'prop-types'
import {
Text
} from 'react-native'
const propTypes = {
selected: PropTypes.bool,
title: PropTypes.string
}
const TabIcon = (props) => {
return <Text
style={{ color: props.focused ? 'red' : 'black' }}
>{props.title}
</Text>
}
TabIcon.propTypes = propTypes
export default TabIcon