import SideDrawer from 'PedalPatrol/src/components/views/helpers/sidedrawer.js'
SideDrawer
Extends:
Class for the side drawer component.
Static Member Summary
Static Public Members | ||
public static |
propTypes: * Helper prop types. |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
closeDrawer: * Closes the drawer. |
|
public |
Component has mounted. |
|
public |
Flattens a list of objects into an object with properties. |
|
public |
navigateToScreen(screen: string, params: Object): * Navigate to a specified screen. |
|
public |
onItemPressed(item: Object): * Function is called when a drawer item is pressed. |
|
public |
openDrawer(numNotifications: Number): * Opens the drawer. |
|
public |
Render the contents of the drawer. |
|
public |
state: {"drawerOpen": *, "numNotifications": *, "profileData": *} |
|
public |
toggleDrawer: * Toggles the side drawer open and closed. |
Private Members | ||
private |
Extract the key from the item and index |
|
private |
_renderItem(item: Object): * Render a text input item. |
Method Summary
Public Methods | ||
public |
render() Render the side drawer. |
Static Public Members
Public Constructors
public constructor() source
Public Members
public getParams(params: List): Object: * source
Flattens a list of objects into an object with properties. Example: Original: [{key: k1, value: v1}, {key: k2, value: v2}] After: {k1: v1, k2: v2}
public navigateToScreen(screen: string, params: Object): * source
Navigate to a specified screen. Screen must be a possible navigation