Reference Source
public class | source

SettingsView

Extends:

* → SettingsView

Class for the Settings view

Static Member Summary

Static Public Members
public static

Set the navigation options, change the header to handle a back button.

Constructor Summary

Public Constructor
public

Creates an instance of the setting view

Member Summary

Public Members
public

Component is about to mount.

public

getParams(params: List): Object: *

Flattens a list of objects into an object with properties.

public

navigate(screen: string, params: Object): *

Navigate to a particular screen.

public

state: {"switchValue": *}

Private Members
private

_onBack: *

Back function to decide go back to the previous page.

Method Summary

Public Methods
public

onValueChange(value: *)

toggle the status of item @ param {Boolean} value - status of the item

public

render()

Renders a react native component.

Static Public Members

public static navigationOptions: Object: * source

Set the navigation options, change the header to handle a back button.

Return:

Object

Navigation option

Public Constructors

public constructor(props: Object) source

Creates an instance of the setting view

Params:

NameTypeAttributeDescription
props Object

Component properties

Public Members

public componentWillMount: * source

Component is about to mount.

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}

Return:

Object

An object with properties

public navigate(screen: string, params: Object): * source

Navigate to a particular screen.

public state: {"switchValue": *} source

Private Members

private _onBack: * source

Back function to decide go back to the previous page.

Public Methods

public onValueChange(value: *) source

toggle the status of item @ param {Boolean} value - status of the item

Params:

NameTypeAttributeDescription
value *

public render() source

Renders a react native component.