Skip to content

Commit 8c59414

Browse files
author
Ali Abdelfattah
authored
Fix and format Android snippets.
1 parent fdba80f commit 8c59414

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for manag
111111
```java
112112
@Override
113113
public void onCreate() {
114-
super.onCreate();
114+
super.onCreate();
115115
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();
122122
}
123123
```
124124
* **For React Native < 0.60**
@@ -127,14 +127,15 @@ Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for manag
127127
```javascript
128128
@Override
129129
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+
);
138139
}
139140
```
140141
* 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

Comments
 (0)