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 AppCenter.setEnabled(!this.state.appCenterEnabled);
const appCenterEnabled = await AppCenter.isEnabled();
this.setState({ appCenterEnabled });
}
toggle: async () => {
await AppCenter.setEnabled(!this.state.appCenterEnabled);
const appCenterEnabled = await AppCenter.isEnabled();
const authEnabled = await Auth.isEnabled();
const pushEnabled = await Push.isEnabled();
this.setState({ appCenterEnabled, authEnabled, pushEnabled });
}
},
toggle: async () => {
await AppCenter.setEnabled(!this.state.appCenterEnabled);
const appCenterEnabled = await AppCenter.isEnabled();
const authEnabled = await Auth.isEnabled();
const pushEnabled = await Push.isEnabled();
this.setState({ appCenterEnabled, authEnabled, pushEnabled });
}
},
async toggleEnabled() {
await AppCenter.setEnabled(!this.state.appCenterEnabled);
const appCenterEnabled = await AppCenter.isEnabled();
this.setState({ appCenterEnabled });
}
async toggleEnabled() {
await AppCenter.setEnabled(!this.state.appCenterEnabled);
const appCenterEnabled = await AppCenter.isEnabled();
this.setState({ appCenterEnabled });
}
async toggleEnabled() {
await AppCenter.setEnabled(!this.state.appCenterEnabled);
const appCenterEnabled = await AppCenter.isEnabled();
this.setState({ appCenterEnabled });
}