text: import React from 'react';
  import {EditUser } from '../components';
  import {StyleSheet,View,StatusBar} from 'react-native';
  import * as firebase from 'firebase'
  import  languageJSON  from '../common/language';
  
  export default class EditProfilePage extends React.Component {
      constructor(props){
          super(props);
      }
  
      //register button click after all validation
      async clickRegister(fname, lname, mobile, email, password) {
          // do something with those parameters
          let regData = {
              firstName:fname,
              lastName:lname,
              mobile:mobile,
              email:email,
          }
  
          var curuser = firebase.auth().currentUser.uid;
          const userData = firebase.database().ref('users/'+curuser).update(regData).then(()=>{
            this.props.navigation.pop();
          })
          
      }
  
    render() {
      return (
          <View style={styles.containerView}>
              <EditUser complexity={'complex'} onPressRegister={(fname, lname, mobile, email, password)=>this.clickRegister(fname, lname, mobile, email, password)}  onPress={()=>{this.clickRegister()}} onPressBack={()=>{this.props.navigation.goBack()}}></EditUser>
          </View>
      );
    }
  }
  
  //Screen Styling
  const styles = StyleSheet.create({
      containerView:{ flex:1 },
      textContainer:{textAlign:"center"},
  });
  