Reference Source
public class | source

HomeView

Extends:

* → HomeView

Class for the Home view

Constructor Summary

Public Constructor
public

Creates an instance of BikeView

Member Summary

Public Members
public

HomeP: *

public

Triggers when a component or this component is mounted.

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
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 state to the profile data retrieved from the model.

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

public componentWillMount: * source

Triggers when a component or this component is mounted.

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 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 state to the profile data retrieved from the model.

Public Methods

public render() source

Renders the screen