import React from 'react'; import { View, ScrollView, } from 'react-native'; import { RkStyleSheet, RkText, } from 'react-native-ui-kitten'; import { Avatar, Gallery, GradientButton, } from '../../components'; import { data } from '../../data'; import formatNumber from '../../utils/textUtils'; export class ProfileV3 extends React.Component { static navigationOptions = { title: 'User Profile'.toUpperCase(), }; state = { data: data.getUser(), }; render = () => ( {`${this.state.data.firstName} ${this.state.data.lastName}`} {this.state.data.postCount} Posts {formatNumber(this.state.data.followersCount)} Followers {this.state.data.followingCount} Following ); } const styles = RkStyleSheet.create(theme => ({ root: { backgroundColor: theme.colors.screen.base, }, header: { alignItems: 'center', paddingTop: 25, paddingBottom: 17, }, userInfo: { flexDirection: 'row', paddingVertical: 18, }, bordered: { borderBottomWidth: 1, borderColor: theme.colors.border.base, }, section: { flex: 1, alignItems: 'center', }, space: { marginBottom: 3, }, separator: { backgroundColor: theme.colors.border.base, alignSelf: 'center', flexDirection: 'row', flex: 0, width: 1, height: 42, }, buttons: { flexDirection: 'row', paddingVertical: 8, }, button: { marginTop: 18, alignSelf: 'center', width: 140, }, }));