File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
` $ npm install @react-native-community/progress-bar-android --save `
9
9
10
+ or
11
+
12
+ ` $ yarn add @react-native-community/progress-bar-android `
13
+
10
14
## Example setup
11
15
![ ] ( https://user-images.githubusercontent.com/25158423/57262658-0d4c5b00-703b-11e9-9e0d-bdf7cb8f942a.gif )
12
16
@@ -56,11 +60,19 @@ yarn android
56
60
57
61
58
62
## Usage
59
- ``` javascript
60
- import RNCAndroidprogressbar from ' @react-native-community/progress-bar-android' ;
63
+ ``` jsx
64
+ import { View } from ' react-native'
65
+ import { ProgressBar } from ' @react-native-community/progress-bar-android' ;
66
+
67
+
68
+ export const Example = () => {
69
+ return (
70
+ < View>
71
+ < ProgressBar styleAttr= " Horizontal" / >
72
+ < / View>
73
+ )
74
+ }
61
75
62
- // TODO: What to do with the module?
63
- RNCAndroidprogressbar;
64
76
```
65
77
66
78
[ lean-core-badge ] : https://img.shields.io/badge/Lean%20Core-Extracted-brightgreen.svg?style=flat-square
You can’t perform that action at this time.
0 commit comments