File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
packages/core/src/Progress Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ Progress 进度条
33
44表明某个任务的当前进度。
55
6- ![ ] ( https://user-images.githubusercontent.com/66067296/140003519-03faded1-e004-45eb-b9af-442d84d6f258.gif ) <!-- rehype:style=zoom: 33%;float: right; margin-left: 15px;-->
76
87### 基础示例
98
10- <!-- DemoStart-->
11- ``` jsx
9+ <!-- DemoStart-->
10+ ``` jsx mdx:preview
11+ import React from ' react' ;
1212import { SafeAreaView } from ' react-native' ;
1313import { Progress } from ' @uiw/react-native' ;
1414import { motorcycle } from ' ./svg' ;
@@ -20,29 +20,29 @@ function Demo() {
2020 < / SafeAreaView>
2121 )
2222}
23+ export default Demo
2324```
2425
25- ### 展示进度图标 & 进度提示字
26+ ### 自定义颜色
2627
27- <!-- DemoStart-->
28- ``` jsx
28+ <!-- DemoStart-->
29+ ``` jsx mdx:preview
30+ import React from ' react' ;
2931import { SafeAreaView } from ' react-native' ;
3032import { Progress } from ' @uiw/react-native' ;
31- import { motorcycle } from ' ./svg' ;
3233
3334function Demo () {
3435 return (
3536 < SafeAreaView style= {{ flex: 1 }}>
3637 < Progress
3738 progressColor= " #5847FF"
38- xml= {motorcycle}
3939 progressShow= {false }
40- iconShow= {true }
4140 progress= {30 }
4241 / >
4342 < / SafeAreaView>
4443 )
4544}
45+ export default Demo
4646```
4747<!-- End-->
4848
You can’t perform that action at this time.
0 commit comments