change card
This commit is contained in:
@@ -4,6 +4,7 @@ import numbro from "numbro";
|
||||
import { Linking } from "react-native";
|
||||
import { isTauri, isWeb } from "../hooks/useLayoutType";
|
||||
import Palette from "../styles/Palette.js";
|
||||
import * as StoreReview from "expo-store-review";
|
||||
|
||||
export const capitalize = (string) => {
|
||||
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||
@@ -140,18 +141,12 @@ export const validateDate = (date = null) => {
|
||||
};
|
||||
|
||||
export const onStoreReview = async () => {
|
||||
let StoreReview;
|
||||
|
||||
if (!isWeb) {
|
||||
import("react-native-store-review").then((module) => {
|
||||
StoreReview = module;
|
||||
|
||||
if (await StoreReview.hasAction()) {
|
||||
StoreReview.requestReview();
|
||||
});
|
||||
}
|
||||
} else {
|
||||
console.log("Store review not available on web");
|
||||
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user