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.
110
-
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.
111
-
112
-
```javascript
113
-
@Override
114
-
protected List<ReactPackage>getPackages() {
115
-
return Arrays.<ReactPackage>asList(
116
-
new MainReactPackage(),
117
-
new RNInstabugReactnativePackage.Builder("YOUR_APP_TOKEN", MainApplication.this)
118
-
.setInvocationEvent("shake")
119
-
.setPrimaryColor("#1D82DC")
120
-
.setFloatingEdge("left")
121
-
.setFloatingButtonOffsetFromTop(250)
122
-
.build()
123
-
}
124
-
```
125
-
* React Native > 0.60
108
+
***For React Native >= 0.60**
126
109
Add the above integration code to the `onCreate()` method instead:
127
110
128
111
```java
@@ -139,6 +122,23 @@ Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for manag
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.
128
+
129
+
```javascript
130
+
@Override
131
+
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()
140
+
}
141
+
```
142
142
143
143
You can find your app token by selecting the SDK tab from your [**Instabug dashboard**](https://dashboard.instabug.com/app/sdk/).
0 commit comments