Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onError: () => {
Toast.fail('缺乏资源,无法阅读', 1)
},
})
Linking.canOpenURL(url).then(supported => {
if (!supported) {
Toast.fail("此链接打不开");
} else {
return Linking.openURL(url);
}
}).catch(err => Toast.fail("An error occurred:" + url));
};
}).catch(err => Toast.fail("An error occurred:" + url));
};