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
Copy file name to clipboardExpand all lines: README.md
+29-8Lines changed: 29 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -17,30 +17,44 @@ For more info, visit [Instabug.com](https://www.instabug.com).
17
17
18
18
## Installation
19
19
20
-
1. Open the terminal and navigate to your React Native Directory. Then run the following command.
20
+
### Using react-native CLI
21
+
22
+
1. In Terminal, navigate to your React Native directory and install the `instabug-reactnative` package:
21
23
22
24
```bash
23
25
npm install instabug-reactnative
24
26
```
25
-
or
27
+
28
+
Or if you prefer to use Yarn instead of npm:
26
29
27
30
```bash
28
31
yarn add instabug-reactnative
29
32
```
30
33
31
-
2.Install [**Ruby**](https://www.ruby-lang.org/en/documentation/installation/). (You can skip this step if you're building for Android only)
34
+
2.For projects that build for iOS, install `xcodeproj` gem:
32
35
33
-
3. Install `xcodeproj` gem by running the following command. (You can also skip this step if you're building for Android only)
34
36
```bash
35
37
gem install xcodeproj
36
38
```
37
39
38
-
4. Link the bridging files in the npm package to the ios project use the following command.
40
+
3. Finally, link the bridging files in the `instabug-reactnative` package:
41
+
42
+
39
43
```bash
40
44
react-native link instabug-reactnative
41
45
```
42
-
### Installing using Cocoapods
43
-
Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for managing dependencies. After following the first step from the installation steps above, add the following to your `Podfile`:
46
+
47
+
### Using CocoaPods
48
+
49
+
Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for managing dependencies.
50
+
51
+
1. In Terminal, navigate to your React Native directory and install the `instabug-reactnative` package:
52
+
53
+
```bash
54
+
npm install instabug-reactnative
55
+
```
56
+
57
+
2. Add the following to your `Podfile`:
44
58
45
59
```ruby
46
60
pod 'instabug-reactnative', :path => '../node_modules/instabug-reactnative'
@@ -54,7 +68,8 @@ pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-po
54
68
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
55
69
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
56
70
```
57
-
And add the following post install script at the end of your `Podfile`:
71
+
72
+
3. Add the following post install script at the end of your `Podfile`:
58
73
59
74
```ruby
60
75
post_install do |installer|
@@ -66,6 +81,12 @@ post_install do |installer|
66
81
end
67
82
```
68
83
84
+
4. Install `instabug-reactnative`:
85
+
86
+
```bash
87
+
pod install
88
+
```
89
+
69
90
## Using Instabug
70
91
1. To start using Instabug, import it into your `index.ios.js` and `index.android.js` file.
0 commit comments