Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async toggleEnabled() {
await Crashes.setEnabled(!this.state.crashesEnabled);
const crashesEnabled = await Crashes.isEnabled();
this.setState({ crashesEnabled });
}
async toggleEnabled() {
await Crashes.setEnabled(!this.state.crashesEnabled);
const crashesEnabled = await Crashes.isEnabled();
this.setState({ crashesEnabled });
}
async toggleEnabled() {
await Crashes.setEnabled(!this.state.crashesEnabled);
const crashesEnabled = await Crashes.isEnabled();
this.setState({ crashesEnabled });
}
toggle: async () => {
await Crashes.setEnabled(!this.state.crashesEnabled);
const crashesEnabled = await Crashes.isEnabled();
this.setState({ crashesEnabled });
}
},
async toggleEnabled() {
await Crashes.setEnabled(!this.state.crashesEnabled);
const crashesEnabled = await Crashes.isEnabled();
this.setState({ crashesEnabled });
}
toggle: async () => {
await Crashes.setEnabled(!this.state.crashesEnabled);
const crashesEnabled = await Crashes.isEnabled();
this.setState({ crashesEnabled });
}
},