import ReportLostView from 'PedalPatrol/src/components/views/reportlost-view.js'
ReportLostView
Extends:
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 |
constructor(props: Object) 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 |
refreshState: * Refreshes the state of the component so new data is fetched. |
|
public |
reportlostP: * |
|
public |
sendUpdate: * Get needed data from the view and send it to presenter. |
|
public |
state: {"text": *, "bikeid": *, "bikeMenu": *} |
Private Members | ||
private |
_dropdown_2_onSelect(idx: Number, value: Object): * 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 |
_dropdown_2_renderButtonText(rowData: Object): string 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 Constructors
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 reportlostP: * source
public state: {"text": *, "bikeid": *, "bikeMenu": *} source
Private Members
Public Methods
Private Methods
private _dropdown_2_renderButtonText(rowData: Object): string source
Render the text of button.
Params:
Name | Type | Attribute | Description |
rowData | Object | the row data of the bike menu |