Reference Source
public class | source

SignUpView

Extends:

* → SignUpView

Class for the SignUp view

Static Member Summary

Static Public Members
public static

navigationOptions(navigation,: Object): Object: *

Set the navigation options, change the header to handle a back button.

Constructor Summary

Public Constructor
public

Create an instance of SignUpView

Member Summary

Public Members
public

SignupP: *

public

This function will trigger before the component mounts

public

Component will unmount after this method is called, do any clean up here Call viewUnmounting in base class so it can do any cleanup for the view before calling the presenter destroy method

public

Refreshes the state of the component so new data is fetched.

public

reportError(errmsg: Object): *

Called if the user input username or password is invalid.

public

Send an update to the presenter with the relevant data.

public

signupCallback(result: Boolean): *

Callback for when the signup completes or fails.

public

state: {"username": *, "password": *, "RPassword": *}

Private Members
private

_onBack: *

When the back button is clicked, check if the user was editing.

Method Summary

Public Methods
public

render()

Extract data from the component's view and send an update to the presenter to do any logic before sending it to the model

Private Methods
private

Handle the click of the button

Static Public Members

public static navigationOptions(navigation,: Object): Object: * source

Set the navigation options, change the header to handle a back button.

Return:

Object

Navigation option

Public Constructors

public constructor(props: Object) source

Create an instance of SignUpView

Params:

NameTypeAttributeDescription
props Object

Component properties

Public Members

public SignupP: * source

public componentWillMount: * source

This function will trigger before the component mounts

public componentWillUnmount: * source

Component will unmount after this method is called, do any clean up here Call viewUnmounting in base class so it can do any cleanup for the view before calling the presenter destroy method

public refreshState: * source

Refreshes the state of the component so new data is fetched.

public reportError(errmsg: Object): * source

Called if the user input username or password is invalid.

public sendUpdate: * source

Send an update to the presenter with the relevant data.

public signupCallback(result: Boolean): * source

Callback for when the signup completes or fails.

public state: {"username": *, "password": *, "RPassword": *} source

Private Members

private _onBack: * source

When the back button is clicked, check if the user was editing.

Public Methods

public render() source

Extract data from the component's view and send an update to the presenter to do any logic before sending it to the model

Private Methods

private _handleClick() source

Handle the click of the button