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.setPrimaryColor(processColor('#ff0000'));
} else if (buttonIndex == 1) {
Instabug.setPrimaryColor(processColor('#00ff00'));
} else if (buttonIndex == 2) {
Instabug.setPrimaryColor(processColor('#0000ff'));
}
});
}
setPrimaryColor(color) {
Instabug.setPrimaryColor(color);
}