Skip to content

Commit 2be6e77

Browse files
committed
✏️ Added changing invocation mode on android
1 parent 5273ac9 commit 2be6e77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

InstabugSample/App.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ export default class App extends Component<{}> {
3131
constructor(props) {
3232
super(props);
3333
this.state = {
34-
switchValue: false,
35-
colorTheme: 'Dark'
34+
switchValue: true,
35+
colorTheme: 'Light'
3636
};
37-
Instabug.startWithToken("APP_TOKEN", Instabug.invocationEvent.shake);
37+
38+
Instabug.startWithToken("APP_TOKEN", [Instabug.invocationEvent.shake]);
3839
Instabug.setReportCategories("Performance","UI","Flow","Other");
3940
Instabug.setPromptOptionsEnabled(true, true, true);
4041
Instabug.setLocale(Instabug.locale.english);
@@ -95,7 +96,6 @@ export default class App extends Component<{}> {
9596
}
9697

9798
invocationEvent() {
98-
if(Platform.OS === 'ios') {
9999
return(
100100
<View>
101101
<Text style={styles.textColor}> Change Invocation Event </Text>

0 commit comments

Comments
 (0)