Skip to content

Commit

Permalink
v2.2.4 - borderColor
Browse files Browse the repository at this point in the history
  • Loading branch information
ThakurBallary committed May 6, 2021
1 parent e6b79c2 commit 8555c99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default function App() {
#### RadioButton
Key | Type | Required | Default | Valid Values
--- | --- | --- | --- | ---
borderColor | string | no | color | css color formats
color | string | no | #444 | css color formats
containerStyle | object | no | | react style
disabled | boolean | no | false | true / false
Expand Down
4 changes: 2 additions & 2 deletions lib/RadioButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PixelRatio, Pressable, StyleSheet, Text, View } from 'react-native';
import { RadioButtonProps } from './types';

export default function RadioButton({
borderColor = '#444',
borderColor,
color = '#444',
containerStyle,
disabled = false,
Expand Down Expand Up @@ -46,7 +46,7 @@ export default function RadioButton({
style={[
styles.border,
{
borderColor: borderColor,
borderColor: borderColor || color,
borderWidth,
width: sizeFull,
height: sizeFull,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-radio-buttons-group",
"version": "2.2.3",
"version": "2.2.4",
"description": "Simple and Best. An easy to use radio buttons for react native apps.",
"main": "./lib/index.ts",
"scripts": {
Expand Down

0 comments on commit 8555c99

Please sign in to comment.