Skip to content

Commit 79d4666

Browse files
edit readme
1 parent f7dfdb9 commit 79d4666

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,27 @@
2222

2323
1. Open up `android/app/src/main/java/[...]/MainApplication.java`
2424
- Add
25+
2526
```java
2627
import com.instabug.reactlibrary.RNInstabugReactnativePackage;
2728
```
29+
2830
to the imports at the top of the file
2931
- Add
32+
3033
```java
3134
new RNInstabugReactnativePackage("YOUR_ANDROID_APPLICATION_TOKEN",MainApplication.this,"INVOCATION_EVENT");
3235
```
36+
3337
to the list returned by the `getPackages()` method
3438
2. Append the following lines to `android/settings.gradle`:
39+
3540
```gradle
3641
include ':instabug-reactnative'
3742
project(':instabug-reactnative').projectDir = new File(rootProject.projectDir, '../node_modules/instabug-reactnative/android')
3843
```
3944
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
45+
4046
```gradle
4147
compile project(':instabug-reactnative')
4248
```
@@ -105,6 +111,8 @@ The invocation event can be specified as one of the following values:
105111
| '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. |
106112

107113
The InstabugColorTheme can be specified as one of the following values:
114+
115+
108116
| value | native equivalent | description |
109117
|:------------:|:-------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
110118
| 'light'| InstabugColorTheme.InstabugColorThemeLight |light theme is color theme to use for the SDK's UI|

0 commit comments

Comments
 (0)