Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for manag
Instabug.startWithToken('IOS_APP_TOKEN', [Instabug.invocationEvent.shake]);
```
3. Open `android/app/src/main/java/[...]/MainApplication.java` (You can skip this step if you are building an iOS app only)
* Make sure to import the package class:
`import com.instabug.reactlibrary.RNInstabugReactnativePackage;`
* React Native < 0.60
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.
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.
Expand All @@ -120,7 +122,7 @@ Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for manag
.build()
}
```
* React Native > 0.60
* React Native > 0.60
Add the above integration code to the `onCreate()` method instead:

```java
Expand Down Expand Up @@ -235,4 +237,4 @@ NetworkLogger.setEnabled(false);

## Documentation

For more details about the supported APIs and how to use them, check our [**Documentation**](https://docs.instabug.com/docs/react-native-overview).
For more details about the supported APIs and how to use them, check our [**Documentation**](https://docs.instabug.com/docs/react-native-overview).