Skip to content

Commit efe73b0

Browse files
author
Ali Abdelfattah
authored
Merge pull request #438 from Instabug/docs/update-installation-steps
Update README.md
2 parents dbaccb4 + 5f328a6 commit efe73b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for manag
103103
Instabug.startWithToken('IOS_APP_TOKEN', [Instabug.invocationEvent.shake]);
104104
```
105105
3. Open `android/app/src/main/java/[...]/MainApplication.java` (You can skip this step if you are building an iOS app only)
106+
* Make sure to import the package class:
107+
`import com.instabug.reactlibrary.RNInstabugReactnativePackage;`
106108
* React Native < 0.60
107109
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.
108110
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.
@@ -120,7 +122,7 @@ Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for manag
120122
.build()
121123
}
122124
```
123-
* React Native > 0.60
125+
* React Native > 0.60
124126
Add the above integration code to the `onCreate()` method instead:
125127
126128
```java
@@ -235,4 +237,4 @@ NetworkLogger.setEnabled(false);
235237
236238
## Documentation
237239
238-
For more details about the supported APIs and how to use them, check our [**Documentation**](https://docs.instabug.com/docs/react-native-overview).
240+
For more details about the supported APIs and how to use them, check our [**Documentation**](https://docs.instabug.com/docs/react-native-overview).

0 commit comments

Comments
 (0)