Skip to content

Commit 10c61ce

Browse files
committed
Merge branch 'master' of https://github.com/Naturalclar/react-native-progress-bar-android into chore/moveToDevDependencies
2 parents 1d9cdfd + 94f8e9e commit 10c61ce

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11

2-
# react-native-androidprogressbar
2+
# @react-native-community/progress-bar-android
3+
4+
[![Lean Core Badge][lean-core-badge]][lean-core-issue]
35

46
## Getting started
57

6-
`$ npm install react-native-androidprogressbar --save`
8+
`$ npm install @react-native-community/progress-bar-android --save`
79

810
## Example setup
911
![](https://user-images.githubusercontent.com/25158423/57262658-0d4c5b00-703b-11e9-9e0d-bdf7cb8f942a.gif)
@@ -20,15 +22,15 @@ npm run build:android
2022

2123
### Mostly automatic installation
2224

23-
`$ react-native link react-native-androidprogressbar`
25+
`$ react-native link @react-native-community/progress-bar-android`
2426

2527
### Manual installation
2628

2729

2830
#### iOS
2931

3032
1. In XCode, in the project navigator, right click `Libraries``Add Files to [your project's name]`
31-
2. Go to `node_modules``react-native-androidprogressbar` and add `RNCAndroidprogressbar.xcodeproj`
33+
2. Go to `node_modules``@react-native-community/progress-bar-android` and add `RNCAndroidprogressbar.xcodeproj`
3234
3. In XCode, in the project navigator, select your project. Add `libRNCAndroidprogressbar.a` to your project's `Build Phases``Link Binary With Libraries`
3335
4. Run your project (`Cmd+R`)<
3436

@@ -39,20 +41,22 @@ npm run build:android
3941
- Add `new RNCAndroidprogressbarPackage()` to the list returned by the `getPackages()` method
4042
2. Append the following lines to `android/settings.gradle`:
4143
```
42-
include ':react-native-androidprogressbar'
43-
project(':react-native-androidprogressbar').projectDir = new File(rootProject.projectDir, '../../node_modules/react-native-androidprogressbar/android')
44+
include ':@react-native-community_progress-bar-android'
45+
project(':@react-native-community_progress-bar-android').projectDir = new File(rootProject.projectDir, '../../node_modules/@react-native-community/progress-bar-android/android')
4446
```
4547
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
4648
```
47-
compile project(':react-native-androidprogressbar')
49+
implementation project(':@react-native-community_progress-bar-android')
4850
```
4951

5052

5153
## Usage
5254
```javascript
53-
import RNCAndroidprogressbar from 'react-native-androidprogressbar';
55+
import RNCAndroidprogressbar from '@react-native-community/progress-bar-android';
5456

5557
// TODO: What to do with the module?
5658
RNCAndroidprogressbar;
5759
```
5860

61+
[lean-core-badge]: https://img.shields.io/badge/Lean%20Core-Extracted-brightgreen.svg?style=flat-square
62+
[lean-core-issue]: https://github.com/facebook/react-native/issues/23313

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-native-androidprogressbar",
2+
"name": "@react-native-community/progress-bar-android",
33
"version": "1.0.0",
44
"description": "React Native Android Progress Bar",
55
"main": "index.js",
@@ -13,7 +13,15 @@
1313
"keywords": [
1414
"react-native",
1515
"react native",
16-
"androidprogressbar"
16+
"androidprogressbar",
17+
"android",
18+
"progress-bar"
19+
],
20+
"files": [
21+
"android",
22+
"ios",
23+
"js",
24+
"index.js"
1725
],
1826
"author": "",
1927
"license": "",

0 commit comments

Comments
 (0)