A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: show notice to buy from web app
ammarahm-edf83737ec2028
diff --git a/apps/mobile/app/components/sheet-provider/index.js b/apps/mobile/app/components/sheet-provider/index.jsindex 4f50e0f6d..c65980143 100644--- a/apps/mobile/app/components/sheet-provider/index.js+++ b/apps/mobile/app/components/sheet-provider/index.js@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-import React, { useEffect, useRef, useState } from "react";+import React, { useCallback, useEffect, useRef, useState } from "react";import { ActivityIndicator, View } from "react-native";import Icon from "react-native-vector-icons/MaterialCommunityIcons";import { editorState } from "../../screens/editor/tiptap/utils";@@ -33,7 +33,6 @@ import { Button } from "../ui/button";import SheetWrapper from "../ui/sheet";import Heading from "../ui/typography/heading";import Paragraph from "../ui/typography/paragraph";-import { useCallback } from "react";const SheetProvider = ({ context = "global" }) => {const colors = useThemeStore((state) => state.colors);const [visible, setVisible] = useState(false);@@ -194,8 +193,11 @@ const SheetProvider = ({ context = "global" }) => {accentColor={dialogData.iconColor || "accent"}accentText="light"type="accent"- height={50}- width="100%"+ height={45}+ width={250}+ style={{+ borderRadius: 100+ }}fontSize={SIZE.md}/>) : null}diff --git a/apps/mobile/app/screens/settings/subscription.js b/apps/mobile/app/screens/settings/subscription.jsindex 3e596042e..3243ff974 100644--- a/apps/mobile/app/screens/settings/subscription.js+++ b/apps/mobile/app/screens/settings/subscription.js@@ -34,6 +34,7 @@ import {} from "../../utils/constants";import { eOpenPremiumDialog } from "../../utils/events";import { SIZE } from "../../utils/size";+import { Config } from "react-native-config";export const Subscription = () => {const user = useUserStore((state) => state.user);const monthlyPlan = usePricing("monthly");@@ -49,6 +50,19 @@ export const Subscription = () => {PremiumService.showVerifyEmailDialog();return;}++ if (Config.GITHUB_RELEASE) {+ presentSheet({+ paragraph:+ "This version of Notesnook app does not support in-app purchases. Kindly login on the Notesnook web app to make the purchase.",+ action: () => {+ Linking.openURL("https://app.notesnook.com");+ },+ actionText: "Go to web app"+ });+ return;+ }+if (user?.subscription?.type === SUBSCRIPTION_STATUS.PREMIUM_CANCELLED &&Platform.OS === "android"@@ -78,10 +92,10 @@ export const Subscription = () => {<View>{isNotPro ? (<Button- height={35}+ height={40}style={{borderRadius: 100,- paddingHorizontal: 16,+ paddingHorizontal: 25,alignSelf: "flex-start"}}fontSize={SIZE.sm}@@ -96,11 +110,16 @@ export const Subscription = () => {? "Manage subscription from desktop app": user.subscription?.type ===SUBSCRIPTION_STATUS.PREMIUM_CANCELLED &&- Platform.OS === "android"+ Platform.OS === "android" &&+ !Config.GITHUB_RELEASE? "Resubscribe from Google Playstore": user.subscription?.type === SUBSCRIPTION_STATUS.PREMIUM_EXPIRED- ? `Resubscribe to Pro (${monthlyPlan?.product?.localizedPrice} / mo)`- : `Get Pro (${monthlyPlan?.product?.localizedPrice} / mo)`+ ? `Resubscribe to Pro (${+ monthlyPlan?.product?.localizedPrice || "$4.49"+ } / mo)`+ : `Get Pro (${+ monthlyPlan?.product?.localizedPrice || "$4.49"+ } / mo)`}/>) : null}