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
+31-18Lines changed: 31 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ You can create a new project using
12
12
13
13
or if you already started your project using the tool `create-react-native-app` you will need to `eject` your project in order to add native modules.
14
14
15
-
More info can be found in the [official docs](https://facebook.github.io/react-native/docs/getting-started.html)
15
+
More info can be found in the [official docs](https://facebook.github.io/react-native/docs/getting-started)
16
16
17
17
Before moving to the next point **compile the project and ensure you can execute**.
18
18
In this way, we can discard issues in the next steps.
@@ -23,40 +23,31 @@ In this way, we can discard issues in the next steps.
23
23
24
24
`$ cd path_to_your_project`
25
25
26
-
**1.**Add the bugfender plugin from npm
26
+
Add the bugfender plugin from npm
27
27
28
28
`$ npm install @bugfender/rn-bugfender --save`
29
29
30
-
**If you want to use cocoapods (recommended), skip the step 2 and go to the step 3B**.
31
-
For manual installation, proceed with the steps 2 and 3A.
30
+
### Android
31
+
If you are using react-native 0.60 or above, you are done!
32
32
33
-
**2.**Link to your project
33
+
**If using an older version of react-native**you still need to link the module to your project:
34
34
```
35
35
// Add the classes of the plugin to your android and iOS projects
36
36
$ npx react-native link @bugfender/rn-bugfender`
37
37
```
38
38
39
-
### Android
40
-
You are done!
41
-
42
39
### iOS
43
-
**3A. Manual installation**
44
-
45
-
Download the latest release from [Github](https://github.com/bugfender/BugfenderSDK-iOS/releases) and copy `BugfenderSDK.framework` to `YourAwesomeProjectDirectory/ios` (same directory as AwesomeProject.xcodeproj). Then, follow the instructions to setup your project manually:
46
-
47
-
* Go to your **Project** > **Your Target** > **General** > **Linked Frameworks and Libraries** and drag `BugfenderSDK.framework` there (uncheck the "Copy items if needed" checkbox).
48
-
49
-
* Make sure you have linked `SystemConfiguration.framework`, `Security.framework`, `MobileCoreServices.framework` and `libc++.tbd` as well.
40
+
You can finish the installation manually or via CocoaPods (recommended)
50
41
51
-
**3B. Cocoapods (recommended)**
42
+
**CocoaPods (recommended)**
52
43
53
44
1. Ensure your iOS project contains a Podfile, otherwise you need to add it now:
54
45
```
55
46
$ cd path_to_your_project/ios
56
47
$ pod init
57
48
```
58
49
59
-
2. Link your project:
50
+
2. Link your project (**only on react-native versions prior 0.60**):
60
51
```
61
52
// Add the classes of the plugin to your android and iOS projects
62
53
$ npx react-native link @bugfender/rn-bugfender`
@@ -80,12 +71,20 @@ When the installation has finished you should be able to run your project in iOS
If you created your project with the react-native cli from React Native 0.60 or newer your podfile should be already prepared. For older versions of react-native you must ensure to override it. Otherwise, cocoapods will download and install a new version in your iOS folder and you will end up with all the React libraries duplicated.
74
+
If you created your project with the react-native cli from React Native 0.60 or newer your podfile should be already prepared. For older versions of react-native you must ensure to override it. Otherwise, CocoaPods will download and install a new version in your iOS folder and you will end up with all the React libraries duplicated.
84
75
85
76
*At the end of this document you can find a **[recommended podfile](#recommended-podfile)**. You can use it as an example*.
86
77
87
78
If you have any problems compiling or executing, try our [Troubleshooting section](#cocoapods-troubleshooting) at the end of this document.
88
79
80
+
**Manual installation (alternative to CocoaPods)**
81
+
82
+
Download the latest release from [Github](https://github.com/bugfender/BugfenderSDK-iOS/releases) and copy `BugfenderSDK.framework` to `YourAwesomeProjectDirectory/ios` (same directory as AwesomeProject.xcodeproj). Then, follow the instructions to setup your project manually:
83
+
84
+
* Go to your **Project** > **Your Target** > **General** > **Linked Frameworks and Libraries** and drag `BugfenderSDK.framework` there (uncheck the "Copy items if needed" checkbox).
85
+
86
+
* Make sure you have linked `SystemConfiguration.framework`, `Security.framework`, `MobileCoreServices.framework` and `libc++.tbd` as well.
87
+
89
88
## RNBugfender Usage
90
89
```javascript
91
90
importBugfenderfrom'@bugfender/rn-bugfender';
@@ -113,6 +112,20 @@ Bugfender.sendIssue ("New issue", "This will create a new issue in Bugfender");
113
112
// Send user feedback
114
113
Bugfender.sendUserFeedback ("New feedback", "This will create a new feedback in Bugfender");
0 commit comments