Skip to content

Commit cafdd8a

Browse files
author
soliury
committed
change spinner color
1 parent 4b780ca commit cafdd8a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/base/Spinner.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ import React,{
88

99

1010
class Spinner extends Component {
11+
static defaultProps={
12+
color: 'rgba(241,196,15, 1)'
13+
};
14+
1115
render() {
1216
if (Platform.OS === 'android') {
1317
return (
14-
<ProgressBarAndroid {...this.props}/>
18+
<ProgressBarAndroid
19+
{...this.props}/>
1520
)
1621
}
1722
return (
1823
<ActivityIndicatorIOS
19-
color="rgba(241,196,15, 1)"
2024
animating={true}
2125
{...this.props}/>
2226
)

0 commit comments

Comments
 (0)