import React from 'react'; import { View } from 'react-native'; import { RkText, RkButton, RkComponent, } from 'react-native-ui-kitten'; import { FontAwesome } from '../../assets/icons'; export class SocialBar extends RkComponent { componentName = 'SocialBar'; typeMapping = { container: {}, section: {}, icon: {}, label: {}, }; static data = { comments: '26', is_solved: "Doesn't solved", }; constructor(props) { super(props); this.state = { comments: this.props.comments, is_solved: this.props.is_solved || SocialBar.data.is_solved, }; } onCommentButtonPressed = () => { }; render() { const { container, section, icon, label, } = this.defineStyles(); const comments = this.state.comments + (this.props.showLabel ? ' Comments' : ''); const is_solved = this.state.is_solved + (this.props.showLabel ? '' : ''); return ( {FontAwesome.comment} {comments} {FontAwesome.slashEye} {is_solved} ); } }