import React from 'react'; import { View, ScrollView, } from 'react-native'; import { RkText, RkButton, RkStyleSheet, } from 'react-native-ui-kitten'; import { Avatar } from '../../components/avatar'; import { Gallery } from '../../components/gallery'; import { data } from '../../data/'; import formatNumber from '../../utils/textUtils'; import NavigationType from '../../config/navigation/propTypes'; export class ProfileV1 extends React.Component { static propTypes = { navigation: NavigationType.isRequired, }; static navigationOptions = { title: 'User Profile'.toUpperCase(), }; state = { data: undefined, }; constructor(props) { super(props); const id = this.props.navigation.getParam('id', 1); this.state.data = data.getUser(id); } 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 FOLLOW MESSAGE ); } 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: { flex: 1, alignSelf: 'center', }, }));