Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
return (
async componentDidMount() {
const isAvailable = await StoreReview.isAvailableAsync();
this.setState({
isAvailable,
});
}
onRequestReview = () => StoreReview.requestReview();
get storeUrl() {
const storeUrl = StoreReview.storeUrl();
if (storeUrl) {
return `On iOS <10.3, or Android devices pressing this button will open ${storeUrl}.`;
} else {
return 'You will need to add ios.appStoreUrl, and android.playStoreUrl to your app.json in order to use this feature.';
}
}