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
{{ message }}
This repository was archived by the owner on Dec 3, 2021. It is now read-only.
3.Insert the following lines inside the dependencies block in `android/app/build.gradle`:
36
-
```
40
+
```gradle
37
41
compile project(':instabug-reactnative')
38
42
```
39
43
40
-
## Usage
41
-
```javascript
42
-
importInstabugfrom'instabug-reactnative';
44
+
## Usage
45
+
46
+
```javascript
47
+
48
+
importInstabugfrom'instabug-reactnative';
49
+
50
+
```
51
+
43
52
53
+
### iOS Example
54
+
55
+
```javascript
44
56
classtestAppextendsComponent {
45
57
constructor() {
46
58
super();
@@ -52,13 +64,52 @@ class testApp extends Component {
52
64
53
65
You can check the rest of the APIs here [Wiki](https://github.com/Instabug/instabug-reactnative/wiki).
54
66
55
-
### iOS
56
67
57
68
If your app doesn't already access the microphone or photo library, you'll need to add the following 2 keys to your app's info.plist file:
58
69
59
70
NSMicrophoneUsageDescription
60
71
NSPhotoLibraryUsageDescription
61
-
72
+
73
+
### Android Example
74
+
75
+
76
+
Usage
77
+
78
+
To initialize Instabug in your app, you only need to link instabug-reactnative correctly by overriding "YOUR_ANDROID_TOKEN" text by your android app token,
79
+
"button" text by your desired invocation event,
80
+
"light" text by your desired color theme,
81
+
and can take a wide range of optional parameters for configuration.
82
+
83
+
1. Open up `android/app/src/main/java/[...]/MainApplication.java`
84
+
85
+
after linking the plugin, you should find the getPackages method looks like
| 'shake' | InstabugInvocationEvent.SHAKE | Shaking the device while in any screen to show the feedback form. |
102
+
| 'button' | InstabugInvocationEvent.FLOATING_BUTTON | Shows a floating button on top of all views, when pressed it takes a screenshot. |
103
+
| 'screenshot' | InstabugInvocationEvent.SCREENSHOT_GESTURE | Taking a screenshot using the Home+Lock buttons while in any screen to show the feedback form, substituted with IBGInvocationEventShake on iOS 6.1.3 and earlier. |
104
+
| 'swipe' | InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT | Swiping two fingers left while in any screen to show the feedback form. |
105
+
| 'none' | InstabugInvocationEvent.NONE | No event will be registered to show the feedback form, you'll need to code your own and call the method invoke. |
106
+
107
+
The InstabugColorTheme can be specified as one of the following values:
0 commit comments