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: update
Ammar Ahmed1be518510a19
diff --git a/apps/mobile/app/components/intro/index.tsx b/apps/mobile/app/components/intro/index.tsxindex 213059351..ef23baf5d 100644--- a/apps/mobile/app/components/intro/index.tsx+++ b/apps/mobile/app/components/intro/index.tsx@@ -30,6 +30,7 @@ import { AuthMode } from "../auth/common";import { Button } from "../ui/button";import Heading from "../ui/typography/heading";import Paragraph from "../ui/typography/paragraph";+import SettingsService from "../../services/settings";const Intro = () => {const { colors } = useThemeColors();@@ -182,7 +183,7 @@ const Intro = () => {width: "100%"}}onPress={async () => {- // SettingsService.set({ introCompleted: true });+ SettingsService.set({ introCompleted: true });Navigation.push("Auth", {mode: AuthMode.welcomeSignup});@@ -200,9 +201,9 @@ const Intro = () => {type="secondary"fontSize={AppFontSize.md}onPress={() => {- // SettingsService.set({- // introCompleted: true- // });+ SettingsService.set({+ introCompleted: true+ });Navigation.push("Auth", {mode: AuthMode.login,context: "intro"diff --git a/apps/mobile/app/components/sheets/paywall/index.tsx b/apps/mobile/app/components/sheets/paywall/index.tsxnew file mode 100644index 000000000..8cc7d3734--- /dev/null+++ b/apps/mobile/app/components/sheets/paywall/index.tsx@@ -0,0 +1,27 @@+import { View, Text } from "react-native";+import { presentSheet } from "../../../services/event-manager";++export default function PaywallSheet() {+ return (+ <View+ style={{+ height: 400,+ width: "100%",+ justifyContent: "center",+ alignItems: "center"+ }}+ >+ {/* Paywall content goes here */}+ <View>+ {/* Example content */}+ <Text>Upgrade to Pro for more features!</Text>+ </View>+ </View>+ );+}++PaywallSheet.present = () => {+ presentSheet({+ component: <PaywallSheet />+ });+};diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsxindex 6f056c198..cdc4f8994 100644--- a/apps/mobile/app/hooks/use-actions.tsx+++ b/apps/mobile/app/hooks/use-actions.tsx@@ -67,6 +67,8 @@ import { deleteItems } from "../utils/functions";import { convertNoteToText } from "../utils/note-to-text";import { sleep } from "../utils/time";import AddReminder from "../screens/add-reminder";+import { isFeatureAvailable } from "@notesnook/common";+import PaywallSheet from "../components/sheets/paywall";export type ActionId =| "select"@@ -684,6 +686,12 @@ export const useActions = ({}async function pinToNotifications() {+ const result = await isFeatureAvailable("pinNoteInNotification");+ if (!result.isAllowed) {+ PaywallSheet.present();+ return;+ }+if (notifPinned) {await Notifications.remove(item.id);await sleep(500);diff --git a/apps/mobile/app/hooks/use-app-events.tsx b/apps/mobile/app/hooks/use-app-events.tsxindex 4d780df78..10699b6c6 100644--- a/apps/mobile/app/hooks/use-app-events.tsx+++ b/apps/mobile/app/hooks/use-app-events.tsx@@ -605,7 +605,6 @@ export const useAppEvents = () => {EV.subscribe(EVENTS.userLoggedOut, onLogout),EV.subscribe(EVENTS.userEmailConfirmed, onUserEmailVerified),EV.subscribe(EVENTS.userSessionExpired, onUserSessionExpired),- EV.subscribe(EVENTS.userCheckStatus, PremiumService.onUserStatusCheck),EV.subscribe(EVENTS.userSubscriptionUpdated,onUserSubscriptionStatusChangeddiff --git a/apps/mobile/native/fonts/MaterialCommunityIcons.ttf b/apps/mobile/native/fonts/MaterialCommunityIcons.ttfindex 113980e65..5a95636de 100644Binary files a/apps/mobile/native/fonts/MaterialCommunityIcons.ttf and b/apps/mobile/native/fonts/MaterialCommunityIcons.ttf differ