Reference Source
public class | source

BikeView

Extends:

* → BikeView

Class for the Bike view

Constructor Summary

Public Constructor
public

Creates an instance of BikeView

Member Summary

Public Members
public

BikeP: *

public

Triggers when the component is mounted.

public

Component has updated with set state.

public

Component is about to mount

public

Component is about to unmount, do any cleanup here.

public

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

public

Resets the state

public
public
Private Members
private

_keyExtractor(item: Object, index: Number): *

Extracts the item id as a string.

private

Triggers a force refresh of the view

private
private
private

Sets the profile image for the view

Method Summary

Public Methods
public

render()

Renders the screen

Public Constructors

public constructor(props: Object) source

Creates an instance of BikeView

Params:

NameTypeAttributeDescription
props Object

Component properties

Public Members

public BikeP: * source

public componentDidMount: * source

Triggers when the component is mounted.

public componentDidUpdate: * source

Component has updated with set state.

public componentWillMount: * source

Component is about to mount

public componentWillUnmount: * source

Component is about to unmount, do any cleanup 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.

public resetState: * source

Resets the state

public searchBarRef: * source

public temporaryFilter: * source

Private Members

private _keyExtractor(item: Object, index: Number): * source

Extracts the item id as a string.

private _onRefresh: * source

Triggers a force refresh of the view

private _renderItem: * source

private _renderSearchBar: * source

private _setProfileImage: * source

Sets the profile image for the view

Public Methods

public render() source

Renders the screen