/**
 * file: CreateAccount.js
 * Description: Creates the Account of the User
 * Created by David on 02/16/17
 */

import React, {Component} from 'react';
import{ AppRegistry, Text, TextInput, View} from 'react-native';

/**
 *Made Constructor and its properties
 */
class createAccount extends React.Component{
	constructor(props){
		super(props);
		
		this.state ={
			fullName: '';
			email:'';
			password: '';
			confirmPassword:'';
		}	
	}
}

/**
 *
 * Renders the fields
 * Have the User input Name, E-mail, Password, Confirm Password
 * Submit button changes state when it is pressed
 */
render(){
	return(
		<View>
			<TextInput
				placeholder="Name"
				onChangeText ={(text) => this.setState({Name: text})}
				value{(this.state.name)}
			/>
			<TextInput
				placeholder="E-mail"
				onChangeText ={(text)=>this.setState({email: text})}
				value{(this.state.email)}
			/>
			<TextInput
				placeholder="Password"
				onChangeText={(text)=>this.setState({password: text})
				secureTextEntry={true}
			/>
			<TextInput
				placeholder="Confirm Password"
				onChangeText={(text)=>this.setState({confirmPassword: text})
				secureTextEntry={true}
			/>
			<Button onPress={onPressButton}
			title = "Submit"
			accessibilityLabel="Creating Account"
		/>
		</View>
	);
};
@@ -190,16 +190,23 @@
 ut, View
+, Alert
 %7D from '
@@ -221,16 +221,69 @@
 tive';%0A%0A
+var alertMessage_1 = 'Password is not strong enough'%0A
 /**%0A *Ma
@@ -499,16 +499,17 @@
 %09%09%7D%09%0A%09%7D%0A
+%0A
 %7D%0A%0A/**%0A 
@@ -802,22 +802,47 @@
 .name)%7D%0A
+%09%09%09%09maxLength = %7B30%7D%0A
 %09%09%09/%3E%0A
+%09%09%09%0A
 %09%09%09%3CText
@@ -966,136 +966,620 @@
 %0A%09%09%09
-/%3E%0A%09%09%09%3CTextInput%0A%09%09%09%09placeholder=%22Password%22%0A%09%09%09%09onChangeText=%7B(text)=%3Ethis.setState(%7Bpassword: text%7D)%0A%09%09%09%09secureTextEntry=%7Btrue%7D
+%09maxLength = %7B30%7D%0A%09%09%09/%3E%0A%09%09%09%3CTextInput%0A%09%09%09%09%3CText%3EPlease input a password at least 8 characters%3C/Text%3E%0A%09%09%09%09%3CText%3ETo help make the password stronger use special characters or numbers%3C/Text%3E%0A%09%09%09%09placeholder=%22Password%22%0A%09%09%09%09onChangeText=%7B(text)=%3Ethis.setState(%7Bpassword: text%7D)%0A%09%09%09%09secureTextEntry=%7Btrue%7D%0A%09%09%09%09maxLength = %7B30%7D%0A%09%09%09%09%3CReactPasswordStrength%0A%09%09%09%09%09className=%22customStyling%22%0A%09%09%09%09%09style=%7B%7B display: 'none' %7D%7D%0A%09%09%09%09%09minLength=%7B8%7D%0A%09%09%09%09%09minScore=%7B2%7D%0A%09%09%09%09%09scoreWords=%7B%5B'weak', 'okay', 'good', 'strong', 'excellent'%5D%7D%0A%09%09%09%09%09changeCallback=%7Bfoo%7D%0A%09%09%09%09%09inputProps=%7B%7B name: %22password_input%22, autocomplete: %22off%22 %7D%7D%0A%09%09%09%09/%3E
 %0A%09%09%09
@@ -1722,16 +1722,37 @@
 =%7Btrue%7D%0A
+%09%09%09%09maxLength = %7B30%7D%0A
 %09%09%09/%3E%0A%09%09
@@ -1845,16 +1845,94 @@
 ccount%22%0A
+%09%09%09if(Password.length %3C %7B8%7D)%7B%0A%09%09%09%09alert(%22Password is not long enough!%22);%0A%09%09%09%7D%0A
 %09%09/%3E%0A%09%09%3C

Add Alert and maxLength