# expo-radio-button

> [![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)

Latest version **1.0.8** (published 2021-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install expo-radio-button
pnpm add expo-radio-button
yarn add expo-radio-button
bun add expo-radio-button
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2021-09-24 |
| First published | 2021-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Frank Pena |
| Maintainers | stealkiller |
| Keywords | expo, radio, button, expo-radio-button |

## Links

- npm: https://www.npmjs.com/package/expo-radio-button
- Repository: https://github.com/stealkiller06/expo-radio-button
- Homepage: https://github.com/stealkiller06/expo-radio-button#readme
- Issues: https://github.com/stealkiller06/expo-radio-button/issues
- npm.io page: https://npm.io/package/expo-radio-button

## Recent versions

- 1.0.8 (latest) — 2021-09-24
- 1.0.7 — 2021-09-24
- 1.0.6 — 2021-09-24
- 1.0.5 — 2021-04-13
- 1.0.4 — 2021-04-12
- 1.0.3 — 2021-04-12
- 1.0.2 — 2021-04-12
- 1.0.1 — 2021-04-12
- 1.0.0 — 2021-04-12

## README

# expo-radio-button

[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)

expo-radio-button is a beautiful and flexible radio button component

[DEMO](https://snack.expo.io/@stealkiller06/expo-radio-button)

## Installation

```sh
npm i expo-radio-button --save
yarn add expo-radio-button
```

## Example

```javascript
import React, { useState } from "react";
import { Text, View } from "react-native";
import RadioButtonGroup, { RadioButtonItem } from "expo-radio-button";
export default function App() {
  const [current, setCurrent] = useState("test");

  return (
    <View style={{ marginTop: 50 }}>
      <RadioButtonGroup
        containerStyle={{ marginBottom: 10 }}
        selected={current}
        onSelected={(value) => setCurrent(value)}
        radioBackground="green"
      >
        <RadioButtonItem value="test2" label="Example with string" />
        <RadioButtonItem
          value="test"
          label={
            <Text style={{ color: "red" }}>Example passing React Element</Text>
          }
        />
      </RadioButtonGroup>
    </View>
  );
}
```

## Properties RadioButtonGroup

| Property        | Description                 |
| --------------- | --------------------------- |
| selected        | Current value selected      |
| size            | (integer) Radio button size |
| containerStyle  | Container Style             |
| radioStyle      | Radio Button Style          |
| radioBackground | default blue                |

## Events RadioButtonGroup

| Property   | Description                |
| ---------- | -------------------------- |
| onSelected | method called when pressed |

## Properties RadioButtonItem

| Property | Description             |
| -------- | ----------------------- |
| value    | option value            |
| label    | (string or JSX.element) |
| style    | View Style              |

## License

MIT

**Free Software, Hell Yeah!**

---
_Source: https://npm.io/package/expo-radio-button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
