Skip to content

Commit 8555c99

Browse files
committed
v2.2.4 - borderColor
1 parent e6b79c2 commit 8555c99

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export default function App() {
101101
#### RadioButton
102102
Key | Type | Required | Default | Valid Values
103103
--- | --- | --- | --- | ---
104+
borderColor | string | no | color | css color formats
104105
color | string | no | #444 | css color formats
105106
containerStyle | object | no | | react style
106107
disabled | boolean | no | false | true / false

lib/RadioButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { PixelRatio, Pressable, StyleSheet, Text, View } from 'react-native';
44
import { RadioButtonProps } from './types';
55

66
export default function RadioButton({
7-
borderColor = '#444',
7+
borderColor,
88
color = '#444',
99
containerStyle,
1010
disabled = false,
@@ -46,7 +46,7 @@ export default function RadioButton({
4646
style={[
4747
styles.border,
4848
{
49-
borderColor: borderColor,
49+
borderColor: borderColor || color,
5050
borderWidth,
5151
width: sizeFull,
5252
height: sizeFull,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-radio-buttons-group",
3-
"version": "2.2.3",
3+
"version": "2.2.4",
44
"description": "Simple and Best. An easy to use radio buttons for react native apps.",
55
"main": "./lib/index.ts",
66
"scripts": {

0 commit comments

Comments
 (0)