Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleCoolDownClicked = async () => {
const result = await WebBrowser.coolDownAsync(this.state.selectedPackage);
Alert.alert('Result', JSON.stringify(result, null, 2));
}
componentWillUnmount() {
if (Platform.OS === 'android') {
WebBrowser.coolDownAsync(this.state.lastWarmedPackage);
}
}