import ReportFoundView from 'PedalPatrol/src/components/views/reportfound-view.js'
ReportFoundView
Extends:
Class for the reportfound 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 found 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 mounted |
|
public |
Component is about to mount, initialize the data before rendering. |
|
public |
Component is about to unmount. |
|
public |
onRegionChange(region: Object): * Region has changed so set the state to the new region. |
|
public |
refreshState: * Refreshes the state of the component so new data is fetched. |
|
public |
reportfoundP: * |
|
public |
sendUpdate: * Get needed data from the view and send it to presenter. |
|
public |
state: {"text": *, "bikeMenu": *, "region": *, "thisMarker": *} |
Private Members | ||
private |
_dropdown_2_onSelect(idx: Number, value: Object): * Events after selecting the item from the dropdown menu |
|
private |
Get user's current location. |
|
private |
_onBack: * The back function to go to the previous page. |
|
private |
Set the location of user. |
Method Summary
Public Methods | ||
public |
render() Renders the react native component. |
|
public |
Sets a marker in the state. |
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 events after clicking submit button. |
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 onRegionChange(region: Object): * source
Region has changed so set the state to the new region.
public reportfoundP: * source
public state: {"text": *, "bikeMenu": *, "region": *, "thisMarker": *} source
Private Members
Public Methods
public setMarker(e: Object) source
Sets a marker in the state. Only one marker is stored at a time.
Params:
Name | Type | Attribute | Description |
e | Object | A place marker event |
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 |