You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package is [automatically linked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) when building the app. All you need to do is:
41
+
42
+
``````
43
+
cd ios && pod install
44
+
``````
45
+
46
+
-`react-native < 0.59`
47
+
48
+
Run the following commands
34
49
`$ react-native link @react-native-community/progress-bar-android`
35
50
36
51
### Manual installation
37
52
38
-
39
-
#### iOS
53
+
<details>
54
+
<summary>Manually linking the library - iOS</summary>
40
55
41
56
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
42
57
2. Go to `node_modules` ➜ `@react-native-community/progress-bar-android` and add `RNCAndroidprogressbar.xcodeproj`
43
58
3. In XCode, in the project navigator, select your project. Add `libRNCAndroidprogressbar.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
44
-
4. Run your project (`Cmd+R`)<
59
+
4. Run your project (`Cmd+R`)
60
+
61
+
</details>
45
62
46
-
#### Android
63
+
<details>
64
+
<summary>Manually link the library - android</summary>
47
65
48
66
1. Open up `android/app/src/main/java/[...]/MainActivity.java`
49
67
- Add `import com.reactnativecommunity.androidprogressbar.RNCAndroidprogressbarPackage;` to the imports at the top of the file
0 commit comments