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
You should find the `getPackages()` method looks like the following snippet. You just need to add your Android app token. You can change the invocation event from here, simply by replacing the `"shake"` with any of the following `"button"`, `"none"`, `"screenshot"`, or `"swipe"`. You can change the primary color by replacing the `"#1D82DC"` with any colour of your choice.
127
-
In the case that you are using the floating button as an invocation event, you can change the floating button edge and the floating button offset using the last two methods, by replacing `"left"` to `"right"`, and by changing the offset number.
125
+
You should find the `getPackages()` method looks like the below snippet. You just need to add your Android app token.
128
126
129
127
```javascript
130
128
@Override
131
129
protected List<ReactPackage>getPackages() {
132
-
return Arrays.<ReactPackage>asList(
133
-
new MainReactPackage(),
134
-
new RNInstabugReactnativePackage.Builder("YOUR_APP_TOKEN", MainApplication.this)
135
-
.setInvocationEvent("shake")
136
-
.setPrimaryColor("#1D82DC")
137
-
.setFloatingEdge("left")
138
-
.setFloatingButtonOffsetFromTop(250)
139
-
.build()
130
+
return Arrays.<ReactPackage>asList(
131
+
new MainReactPackage(),
132
+
new RNInstabugReactnativePackage.Builder("YOUR_APP_TOKEN", MainApplication.this)
133
+
.setInvocationEvent("shake")
134
+
.setPrimaryColor("#1D82DC")
135
+
.setFloatingEdge("left")
136
+
.setFloatingButtonOffsetFromTop(250)
137
+
.build()
138
+
);
140
139
}
141
140
```
142
-
141
+
* You can change the invocation event from here, simply by replacing the `"shake"` with any of the following `"button"`, `"none"`, `"screenshot"`, or `"swipe"`. You can change the primary color by replacing the `"#1D82DC"` with any color of your choice.
142
+
In the case that you are using the floating button as an invocation event, you can change the floating button edge and the floating button offset using the last two methods, by replacing `"left"` to `"right"`, and by changing the offset number.
143
+
143
144
You can find your app token by selecting the SDK tab from your [**Instabug dashboard**](https://dashboard.instabug.com/app/sdk/).
144
145
145
146
4. Make sure the following snippet is added to your project level `build.gradle`. This should be added automatically upon linking. If not, you can add it manually.
0 commit comments