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

Checkbox

Checkboxes allow the user to select one or more items from a set.

import { Checkbox } from '../components'

<Checkbox 
  status={'checked'}
  onPress={(state) => !state}
  color={colors.primary}
/>

CheckBoxes can be checked or disabled.

import { Checkbox } from '../components'

<Checkbox 
  status={'unchecked'}
  onPress={(state) => !state}
  color={colors.primary}
  disabled
/>

Properties

Name

Type

Description

status

string

Can be checked, unchecked

onPress

(status: string) => void

Called when checkbox should switch it's value.

color

string

Changes a color of the checkbox.

disabled

bool

Makes the checkbox disabled.

PreviousButtonNextToggle

Last updated 4 years ago