@@ -14,11 +14,11 @@ Simple, best and easy to use radio buttons for react native apps.
14
14
15
15
### Installation
16
16
17
- ```
17
+ ``` bash
18
18
npm i react-native-radio-buttons-group --save
19
19
```
20
20
or
21
- ```
21
+ ``` bash
22
22
yarn add react-native-radio-buttons-group
23
23
```
24
24
@@ -27,7 +27,7 @@ yarn add react-native-radio-buttons-group
27
27
##### Javascript Example
28
28
29
29
###### App.js
30
- ```
30
+ ``` jsx
31
31
import React , { useState } from ' react' ;
32
32
import RadioGroup from ' react-native-radio-buttons-group' ;
33
33
@@ -63,7 +63,7 @@ export default function App() {
63
63
##### Typescript Example
64
64
65
65
###### App.tsx
66
- ```
66
+ ``` tsx
67
67
import React , { useState } from ' react' ;
68
68
import RadioGroup , {RadioButtonProps } from ' react-native-radio-buttons-group' ;
69
69
@@ -105,7 +105,7 @@ borderColor | string | no | color | css color formats
105
105
color | string | no | #444 | css color formats
106
106
containerStyle | object | no | | react style
107
107
disabled | boolean | no | false | true / false
108
- id | string | yes | | any string
108
+ id | string | yes | | unique string
109
109
label | string | no | | any string
110
110
labelStyle | object | no | | react style
111
111
layout | enum | no | row | row / column
@@ -122,7 +122,7 @@ onPress | function | no | | any function
122
122
radioButtons | array | yes | | arrary of [ RadioButton] ( #radiobutton ) objects
123
123
124
124
###### Horizontal (side by side)
125
- ```
125
+ ``` jsx
126
126
< RadioGroup
127
127
radioButtons= {radioButtons}
128
128
onPress= {onPressRadioButton}
0 commit comments