Edit this page on Github

Switch

A component for displaying a switch.

@Component({
  selector: 'sample',
  template: `<Switch (change)="switched=$event"></Switch>`
})
export class Sample {
  switched: boolean = false;
 }

Available styles

https://facebook.github.io/react-native/docs/view.html#style
Android flavouriOS flavour

Inputs

Inherits all inputs from high level component

on: boolean

To be documented

enabled: boolean

To be documented

iosonTintColor: color

To be documented

iosthumbTintColor: color

To be documented

iostintColor: color

To be documented

Outputs

change: EventEmitter<boolean>

To be documented


Getting started

Features

bootstrapAPIsGesturesHttpRouterStyle

Components

ActivityIndicatorHighLevelComponentImagePickerRefreshControlScrollViewSliderSwitchTextTextInputViewWebView
Android
DrawerLayoutPagerLayoutProgressBarToolbar
iOS
DatePickerNavigatorProgressViewSegmentedControlTabBarTabBarItem

Directives

Opacity feedbackRipple feedback