Skip to content

Latest commit

 

History

History
56 lines (52 loc) · 1.06 KB

File metadata and controls

56 lines (52 loc) · 1.06 KB

react-native-app-helpers/CheckboxStyle

Describes the style of a checkbox.

Usage

import type { CheckboxStyle } from "react-native-app-helpers";

const example: CheckboxStyle = {
  fontFamily: `Example Font Family`,
  fontSize: 16,
  boxSize: 14,
  boxLabelSpacing: 5,
  disabledFalse: {
    backgroundColor: 'blue',
    color: 'yellow',
    boxChild: <Text>This is shown in the box.</Text>,
    radius: 3,
    border: {
      width: 5,
      color: `red`,
    },
  },
  disabledTrue: {
    backgroundColor: 'blue',
    color: 'yellow',
    boxChild: <Text>This is shown in the box.</Text>,
    radius: 3,
    border: {
      width: 5,
      color: `red`,
    },
  },
  enabledFalse: {
    backgroundColor: 'blue',
    color: 'yellow',
    boxChild: <Text>This is shown in the box.</Text>,
    radius: 3,
    border: {
      width: 5,
      color: `red`,
    },
  },
  enabledTrue: {
    backgroundColor: 'blue',
    color: 'yellow',
    boxChild: <Text>This is shown in the box.</Text>,
    radius: 3,
    border: {
      width: 5,
      color: `red`,
    },
  },
};