Reference Source
public class | source

ReportLostView

Extends:

* → ReportLostView

Class for the reportlost view

Static Member Summary

Static Public Members
public static

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

Constructor Summary

Public Constructor
public

Creates an instance of the report lost view

Member Summary

Public Members
public

alertCallback(success: Boolean): *

Sets a callback on what to do if there is a success or error when a bike is uploaded.

public

Component is about to mount, initialize the data before rendering.

public

Component is aobut to unmount

public

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

public
public

Get needed data from the view and send it to presenter.

public

state: {"text": *, "bikeid": *, "bikeMenu": *}

Private Members
private

Events after selecting the item from the dropdown menu

private

_onBack: *

Back function to go back to the previous page.

Method Summary

Public Methods
public

render()

Renders a react native component.

Private Methods
private

Render the text of button.

private

_dropdown_2_renderRow(rowData: Object, rowID: Number, highlighted: Boolean)

Render each row in the menu

private

handle the event after clicking submit.

Static Public Members

public static navigationOptions: 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

Creates an instance of the report lost view

Params:

NameTypeAttributeDescription
props Object

Component properties

Public Members

public alertCallback(success: Boolean): * source

Sets a callback on what to do if there is a success or error when a bike is uploaded.

public componentWillMount: * source

Component is about to mount, initialize the data before rendering.

public componentWillUnmount: * source

Component is aobut to unmount

public refreshState: * source

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

public reportlostP: * source

public sendUpdate: * source

Get needed data from the view and send it to presenter.

public state: {"text": *, "bikeid": *, "bikeMenu": *} source

Private Members

private _dropdown_2_onSelect(idx: Number, value: Object): * source

Events after selecting the item from the dropdown menu

private _onBack: * source

Back function to go back to the previous page.

Public Methods

public render() source

Renders a react native component.

Private Methods

private _dropdown_2_renderButtonText(rowData: Object): string source

Render the text of button.

Params:

NameTypeAttributeDescription
rowData Object

the row data of the bike menu

Return:

string

Returns the name of the component

private _dropdown_2_renderRow(rowData: Object, rowID: Number, highlighted: Boolean) source

Render each row in the menu

Params:

NameTypeAttributeDescription
rowData Object

each data in bikemenu

rowID Number

the id of item in the menu

highlighted Boolean

Highlight the selected item.

private _handleClick() source

handle the event after clicking submit.