import BikeDetailsView from 'PedalPatrol/src/components/views/bikedetails-view.js'
BikeDetailsView
Extends:
Class for the bike details view to display information about a bike.
Static Member Summary
Static Public Members | ||
public static |
|
Constructor Summary
Public Constructor | ||
public |
constructor(props: Object) Creates an instance of the add bike view |
Member Summary
Public Members | ||
public |
BikeDetP: * |
|
public |
alertConfirmCallback(success: Boolean): * Confirm callback on success or failure trying to confirm. |
|
public |
alertRejectionCallback(success: Boolean): * Reject callback on success or failure trying to reject. |
|
public |
Component mounted |
|
public |
Component is about to mount, initialize the data. |
|
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 |
Function for decision confirm |
|
public |
Function for decision reject |
|
public |
Navigates to a certain screen with parameters. |
|
public |
A callback function if there is a map open error. |
|
public |
refreshState: * Refreshes the state of the component so new data is fetched. |
|
public |
state: * |
Private Members | ||
private |
Extract the key from the item and index |
|
private |
_onBack: * When the back button is clicked, check if the user was editing. |
|
private |
_renderItem(item: Object): Component: * Renders a bike detail |
|
private |
_renderText(text: string): Component: * Renders the text of the label. |
Method Summary
Public Methods | ||
public |
render(): Component Renders items to the screen |
Private Methods | ||
private |
Handles the report found button clicked. |
|
private |
Handles the confirm found button clicked |
|
private |
Handles the reject button clicked |
Inherited Summary
From class BaseView | ||
public |
refreshState: * Refreshes the state of the presenter. |
|
public |
viewUnmounting(A: Class): * Component will unmount after this method is called, do any clean up here. |
|
public |
render() Render objects to the screen. |
Static Public Members
public static navigationOptions: * source
Public Constructors
Public Members
public BikeDetP: * source
public alertConfirmCallback(success: Boolean): * source
Confirm callback on success or failure trying to confirm.
public alertRejectionCallback(success: Boolean): * source
Reject callback on success or failure trying to reject.
public componentWillMount: * source
Component is about to mount, initialize the data. This function is called before componentDidMount
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.
Override:
BaseView#refreshStatepublic state: * source
Private Members
Public Methods
public render(): Component source
Renders items to the screen
Override:
BaseView#renderReturn:
Component |