React Native Starter
Search…
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
Toggle
Switches toggle the state of a single setting on or off.
1
import
{
Checkbox
}
from
'../components'
2
3
<
Switch
value
=
{
val
}
onValueChange
=
{(
val
)
=>
!
val
}
/>
Copied!
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.
Previous
Checkbox
Next
Input
Last modified
1yr ago
Copy link
Contents
Properties