React Native Starter
2.0.0
2.0.0
  • Getting Started
  • Architecture
  • Testing
  • Internationalization
  • Adding Pages and Components
  • Components
    • Text
    • Icon
    • Card
    • List
    • Top Navigation
    • Top Tabs
    • Bottom Tabs
    • Menu
    • Button
    • Checkbox
    • Toggle
    • Input
  • Screens
  • Theming
Powered by GitBook
On this page
  1. Components

Toggle

Switches toggle the state of a single setting on or off.

import { Checkbox } from '../components'

<Switch value={val} onValueChange={(val) => !val} />

Properties

Name

Type

Description

value

bool

Whether component is checked. Defaults to false.

onValueChange

(boolean) => void

Called when toggle should switch it's value.

disabled

bool

Makes toggle disabled.

PreviousCheckboxNextInput

Last updated 4 years ago