Reference Source
public class | source

BikeDetailsView

Extends:

*BaseView → BikeDetailsView

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

Creates an instance of the add bike view

Member Summary

Public Members
public
public

Confirm callback on success or failure trying to confirm.

public

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

navigate(screen: string): *

Navigates to a certain screen with parameters.

public

A callback function if there is a map open error.

public

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

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 constructor(props: Object) source

Creates an instance of the add bike view

Params:

NameTypeAttributeDescription
props Object

Component properties

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 componentDidMount: * source

Component mounted

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 decisionConfirm: * source

Function for decision confirm

public decisionReject: * source

Function for decision reject

public navigate(screen: string): * source

Navigates to a certain screen with parameters.

public onMapOpenError: * source

A callback function if there is a map open error.

public refreshState: * source

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

Override:

BaseView#refreshState

public state: * source

Private Members

private _keyExtractor: * source

Extract the key from the item and index

private _onBack: * source

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

private _renderItem(item: Object): Component: * source

Renders a bike detail

Return:

Component

A react-native component

private _renderText(text: string): Component: * source

Renders the text of the label.

Return:

Component

A react-native component

Public Methods

public render(): Component source

Renders items to the screen

Override:

BaseView#render

Return:

Component

Private Methods

private _handleClick() source

Handles the report found button clicked.

private _handleClickToConfirm() source

Handles the confirm found button clicked

private _handleClickToReject() source

Handles the reject button clicked