Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(buttonIndex) => {
if (buttonIndex == 0) {
Instabug.setInvocationEvent(Instabug.invocationEvent.shake);
} else if (buttonIndex == 1) {
Instabug.setInvocationEvent(Instabug.invocationEvent.screenshot);
} else if (buttonIndex == 2) {
Instabug.setInvocationEvent(Instabug.invocationEvent.twoFingersSwipe);
} else if (buttonIndex) {
Instabug.setInvocationEvent(Instabug.invocationEvent.floatingButton);
}
});
}
(buttonIndex) => {
if (buttonIndex == 0) {
Instabug.setInvocationEvent(Instabug.invocationEvent.shake);
} else if (buttonIndex == 1) {
Instabug.setInvocationEvent(Instabug.invocationEvent.screenshot);
} else if (buttonIndex == 2) {
Instabug.setInvocationEvent(Instabug.invocationEvent.twoFingersSwipe);
} else if (buttonIndex) {
Instabug.setInvocationEvent(Instabug.invocationEvent.floatingButton);
}
});
}
(buttonIndex) => {
if (buttonIndex == 0) {
Instabug.setInvocationEvent(Instabug.invocationEvent.shake);
} else if (buttonIndex == 1) {
Instabug.setInvocationEvent(Instabug.invocationEvent.screenshot);
} else if (buttonIndex == 2) {
Instabug.setInvocationEvent(Instabug.invocationEvent.twoFingersSwipe);
} else if (buttonIndex) {
Instabug.setInvocationEvent(Instabug.invocationEvent.floatingButton);
}
});
}
(buttonIndex) => {
if (buttonIndex == 0) {
Instabug.setInvocationEvent(Instabug.invocationEvent.shake);
} else if (buttonIndex == 1) {
Instabug.setInvocationEvent(Instabug.invocationEvent.screenshot);
} else if (buttonIndex == 2) {
Instabug.setInvocationEvent(Instabug.invocationEvent.twoFingersSwipe);
} else if (buttonIndex) {
Instabug.setInvocationEvent(Instabug.invocationEvent.floatingButton);
}
});
}