Skip to content

Commit 14814d8

Browse files
committed
📚 Update README.md for when upgrading from 8.0.3
1 parent 4d0137c commit 14814d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import Instabug from 'instabug-reactnative';
5151
2. Then initialize it in the `constructor` or `componentWillMount`. This line will let the Instabug SDK work with the default behavior. The SDK will be invoked when the device is shaken. You can customize this behavior through the APIs (You can skip this step if you are building an Android app only).
5252

5353
```javascript
54-
Instabug.startWithToken('IOS_APP_TOKEN', Instabug.invocationEvent.shake);
54+
Instabug.startWithToken('IOS_APP_TOKEN', [Instabug.invocationEvent.shake]);
5555
```
5656
3. Open `android/app/src/main/java/[...]/MainApplication.java`
5757
You should find the getPackages method looks like the following snippet. You just need to add your Android app token (You can skip this step if you are building an iOS app only). 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.
@@ -99,13 +99,13 @@ pod install
9999
react-native link instabug-reactnative
100100
```
101101
102-
### Upgrading from 2.0.x
102+
### Upgrading from 2.0.x and from 8.0.3
103103
104-
When upgrading from 2.0.x to 2.1.x, please make sure you do the following steps:
104+
When upgrading from 2.0.x to 2.1.x or from 8.0.3 to 8.x, please make sure you do the following steps:
105105
106106
1. Unlink the project before upgrading to the new version
107107
```bash
108-
reacy-native unlink instabug-reactnative
108+
react-native unlink instabug-reactnative
109109
```
110110
111111
2. Install the new version by running

0 commit comments

Comments
 (0)