You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,10 +51,7 @@ Don't forget to set the state variable you have given to _isLoading_ prop false
51
51
* Default button style
52
52
```javascript
53
53
defaultButtonStyle: {
54
-
justifyContent:'center',
55
-
alignItems:'center',
56
-
height:50,
57
-
backgroundColor:'#25CAC6',
54
+
height:50
58
55
}
59
56
```
60
57
3.**borderStyle**
@@ -152,7 +149,7 @@ Don't forget to set the state variable you have given to _isLoading_ prop false
152
149
* The flag to identify network connection and based on flag set user iteration. _false_ will render button with disable mode and _true_ will render button with normal mode.
153
150
* Default type: boolean
154
151
* Default value: _true_
155
-
27. **isDisable**
152
+
27. **disabled**
156
153
* The flag to identify button enable/disable. _true_ will render button with disable mode and _false_ will render button with normal mode.
157
154
* Default type: boolean
158
155
* Default value: _false_
@@ -166,6 +163,10 @@ Don't forget to set the state variable you have given to _isLoading_ prop false
166
163
* Its default value is null | undefined.
167
164
* This properties used whenever you want to need gradient but not pass __gradientColors__, __gradientColoroffset__ and __gradientColorAngle__ properties.
168
165
* if you want to see color combination of [Sample gradient](https://fx-gradient-previewer.netlify.app/)
166
+
30. **disableGradientColors**
167
+
* This is how we pass the colors we want to be displayed when button disable, colors can be passed in a different format, name, rgba, hex etc.
168
+
* The colors should be ordered the way we want them to be displayed.
169
+
* Eg. colors={[ “purple”, “white” ]} the gradient will move from purple to white.
169
170
170
171
## Example
171
172
A full working example project is here [Example](https://github.com/simformsolutions/react-native-spinner-button/tree/master/Example)
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "react-native-spinner-button",
3
-
"version": "1.0.5",
3
+
"version": "1.0.9",
4
4
"description": "This is a react-native button component with a spinner. You can load a spinner or a button from the same component depending on a flag. for eg, you have a button. And on press of that button you are doing something and wants the user to show a spinner, all you have to do is use this component. You can pass along a boolean flag. The component will render a spinner if the flag is true and button if the flag is false.",
0 commit comments