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
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,14 +111,14 @@ Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for manag
111
111
```java
112
112
@Override
113
113
public void onCreate() {
114
-
super.onCreate();
114
+
super.onCreate();
115
115
new RNInstabugReactnativePackage
116
-
.Builder("APP_TOKEN", MainApplication.this)
117
-
.setInvocationEvent("shake")
118
-
.setPrimaryColor("#1D82DC")
119
-
.setFloatingEdge("left")
120
-
.setFloatingButtonOffsetFromTop(250)
121
-
.build();
116
+
.Builder("APP_TOKEN", MainApplication.this)
117
+
.setInvocationEvent("shake")
118
+
.setPrimaryColor("#1D82DC")
119
+
.setFloatingEdge("left")
120
+
.setFloatingButtonOffsetFromTop(250)
121
+
.build();
122
122
}
123
123
```
124
124
***For React Native < 0.60**
@@ -127,14 +127,15 @@ Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for manag
127
127
```javascript
128
128
@Override
129
129
protected List<ReactPackage>getPackages() {
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()
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
+
);
138
139
}
139
140
```
140
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.
0 commit comments