Skip to content

Commit 816a4dd

Browse files
websoptimizationwebsoptimization
authored andcommitted
solving issue of use multi time component
1 parent f24d1f6 commit 816a4dd

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

dashed-progress/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ export class DashedProgress extends PureComponent {
7979
divideEnabled,
8080
trailColor
8181
} = this.props;
82-
82+
console.log(
83+
"radius >>>>>>>>> ",
84+
radius,
85+
" and divideEnabled >>>>>>> ",
86+
divideEnabled
87+
);
8388
return new Promise((resolve, reject) => {
8489
try {
8590
var count = 0;

example/App.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ export default class App extends Component {
1010
<DashedProgress
1111
fill={20}
1212
countBars={50}
13-
radius={50}
13+
radius={30}
14+
divideEnabled={true}
15+
strokeThickness={2}
16+
/>
17+
<DashedProgress
18+
fill={20}
19+
countBars={50}
20+
radius={30}
1421
strokeColor="#00e0ff"
1522
/>
1623
</View>
@@ -22,7 +29,7 @@ const styles = StyleSheet.create({
2229
body: {
2330
backgroundColor: 'white',
2431
flex: 1,
25-
justifyContent: 'center',
32+
justifyContent: 'space-evenly',
2633
alignItems: 'center',
2734
},
2835
});

0 commit comments

Comments
 (0)