Skip to content

Commit 93eedc9

Browse files
committed
docs: add usage example
1 parent 66ed3e2 commit 93eedc9

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
`$ npm install @react-native-community/progress-bar-android --save`
99

10+
or
11+
12+
`$ yarn add @react-native-community/progress-bar-android`
13+
1014
## Example setup
1115
![](https://user-images.githubusercontent.com/25158423/57262658-0d4c5b00-703b-11e9-9e0d-bdf7cb8f942a.gif)
1216

@@ -56,11 +60,19 @@ yarn android
5660

5761

5862
## 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+
}
6175

62-
// TODO: What to do with the module?
63-
RNCAndroidprogressbar;
6476
```
6577

6678
[lean-core-badge]: https://img.shields.io/badge/Lean%20Core-Extracted-brightgreen.svg?style=flat-square

0 commit comments

Comments
 (0)