Skip to content

Commit d096716

Browse files
Merge pull request #26 from tomByrer/patch-1
READEME: + code highlighting, id = 'unique string'
2 parents 0955781 + cf2c24c commit d096716

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Simple, best and easy to use radio buttons for react native apps.
1414

1515
### Installation
1616

17-
```
17+
```bash
1818
npm i react-native-radio-buttons-group --save
1919
```
2020
or
21-
```
21+
```bash
2222
yarn add react-native-radio-buttons-group
2323
```
2424

@@ -27,7 +27,7 @@ yarn add react-native-radio-buttons-group
2727
##### Javascript Example
2828

2929
###### App.js
30-
```
30+
```jsx
3131
import React, { useState } from 'react';
3232
import RadioGroup from 'react-native-radio-buttons-group';
3333

@@ -63,7 +63,7 @@ export default function App() {
6363
##### Typescript Example
6464

6565
###### App.tsx
66-
```
66+
```tsx
6767
import React, { useState } from 'react';
6868
import RadioGroup, {RadioButtonProps} from 'react-native-radio-buttons-group';
6969

@@ -105,7 +105,7 @@ borderColor | string | no | color | css color formats
105105
color | string | no | #444 | css color formats
106106
containerStyle | object | no | | react style
107107
disabled | boolean | no | false | true / false
108-
id | string | yes | | any string
108+
id | string | yes | | unique string
109109
label | string | no | | any string
110110
labelStyle | object | no | | react style
111111
layout | enum | no | row | row / column
@@ -122,7 +122,7 @@ onPress | function | no | | any function
122122
radioButtons | array | yes | | arrary of [RadioButton](#radiobutton) objects
123123

124124
###### Horizontal (side by side)
125-
```
125+
```jsx
126126
<RadioGroup
127127
radioButtons={radioButtons}
128128
onPress={onPressRadioButton}

0 commit comments

Comments
 (0)