import React from 'react'; import { ScrollView, View, StyleSheet, } from 'react-native'; import { RkText, RkTextInput, RkAvoidKeyboard, RkTheme, RkStyleSheet, } from 'react-native-ui-kitten'; import { data } from '../../data'; import { Avatar, SocialSetting, GradientButton, } from '../../components'; import { FontAwesome } from '../../assets/icons'; export class ProfileSettings extends React.Component { static navigationOptions = { title: 'Profile Settings'.toUpperCase(), }; user = data.getUser(); state = { firstName: this.user.firstName, lastName: this.user.lastName, email: this.user.email, country: this.user.country, phone: this.user.phone, password: this.user.password, newPassword: this.user.newPassword, confirmPassword: this.user.confirmPassword, }; onFirstNameInputChanged = (text) => { this.setState({ firstName: text }); }; onLastNameInputChanged = (text) => { this.setState({ lastName: text }); }; onEmailInputChanged = (text) => { this.setState({ email: text }); }; onCountryInputChanged = (text) => { this.setState({ country: text }); }; onPhoneInputChanged = (text) => { this.setState({ phone: text }); }; onPasswordInputChanged = (text) => { this.setState({ password: text }); }; onNewPasswordInputChanged = (text) => { this.setState({ newPassword: text }); }; onConfirmPasswordInputChanged = (text) => { this.setState({ confirmPassword: text }); }; render = () => ( INFO CHANGE PASSWORD CONNECT YOUR ACCOUNT ); } const styles = RkStyleSheet.create(theme => ({ root: { backgroundColor: theme.colors.screen.base, }, header: { backgroundColor: theme.colors.screen.neutral, paddingVertical: 25, }, section: { marginVertical: 25, }, heading: { paddingBottom: 12.5, }, row: { flexDirection: 'row', paddingHorizontal: 17.5, borderBottomWidth: StyleSheet.hairlineWidth, borderColor: theme.colors.border.base, alignItems: 'center', }, button: { marginHorizontal: 16, marginBottom: 32, }, }));