Skip to content

TabBarIcon can not call class as a funtion #2013

Closed
@colorfulberry

Description

@colorfulberry

image
code

export default class TabIcon extends Component {
  constructor(props) {
    super(props)
    this.state = {
      TbIcon: '',
      TbIconActive: ''
    }
  }

  render(){
    return <Text
      style={{color: props.selected ? 'red' : 'black'}}
    >TAB
      {props.title}
    </Text>
  }

};

And if we will not support an class with TabIcon?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions