react-native-radio-buttons-group
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -17,2 +17,3 @@ export type RadioButtonProps = { | ||
export type RadioGroupProps = { | ||
containerStyle?: object; | ||
layout?: 'row' | 'column'; | ||
@@ -19,0 +20,0 @@ onPress?: (radioButtons: RadioButtonProps[]) => void; |
{ | ||
"name": "react-native-radio-buttons-group", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "Simple and Best. An easy to use radio buttons for react native apps.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.ts", |
# React Native Radio Buttons Group | ||
Simple and Best. An easy to use radio buttons for react native apps. | ||
Simple, best and easy to use radio buttons for react native apps. | ||
@@ -17,7 +17,7 @@ ![npm](https://img.shields.io/npm/v/react-native-radio-buttons-group) ![LICENSE MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg) | ||
``` | ||
```bash | ||
npm i react-native-radio-buttons-group --save | ||
``` | ||
or | ||
``` | ||
```bash | ||
yarn add react-native-radio-buttons-group | ||
@@ -31,3 +31,3 @@ ``` | ||
###### App.js | ||
``` | ||
```jsx | ||
import React, { useState } from 'react'; | ||
@@ -68,3 +68,3 @@ import RadioGroup from 'react-native-radio-buttons-group'; | ||
###### App.tsx | ||
``` | ||
```tsx | ||
import React, { useState } from 'react'; | ||
@@ -111,3 +111,3 @@ import RadioGroup, {RadioButtonProps} from 'react-native-radio-buttons-group'; | ||
disabled | boolean | no | false | true / false | ||
id | string | yes | | any string | ||
id | string | yes | | unique string | ||
label | string | no | | any string | ||
@@ -124,2 +124,3 @@ labelStyle | object | no | | react style | ||
--- | --- | --- | --- | --- | ||
containerStyle | object | no | | react style | ||
layout | enum | no | column | row / column | ||
@@ -130,3 +131,3 @@ onPress | function | no | | any function | ||
###### Horizontal (side by side) | ||
``` | ||
```jsx | ||
<RadioGroup | ||
@@ -133,0 +134,0 @@ radioButtons={radioButtons} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108251
141
137