Skip to content

Commit 8c60a20

Browse files
Merge pull request #541 from Instabug/fix/start-api-ref
Replace deprecated API in Sample App [MOB-4792]
2 parents 4782320 + 8fa8862 commit 8c60a20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

InstabugSample/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class App extends Component<{}> {
3838
colorTheme: 'Light',
3939
};
4040

41-
Instabug.startWithToken('068ba9a8c3615035e163dc5f829c73be', [
41+
Instabug.start('068ba9a8c3615035e163dc5f829c73be', [
4242
Instabug.invocationEvent.floatingButton,
4343
]);
4444
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import Instabug from 'instabug-reactnative';
5959
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.
6060

6161
```javascript
62-
Instabug.startWithToken('IOS_APP_TOKEN', [Instabug.invocationEvent.shake]);
62+
Instabug.start('IOS_APP_TOKEN', [Instabug.invocationEvent.shake]);
6363
```
6464
* ### Android
6565
1. Open `android/app/src/main/java/[...]/MainApplication.java`

0 commit comments

Comments
 (0)